From 08e31b6b18e8f09ea1df922e5d088f151a49d9c5 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 15 Jun 2018 17:15:57 +0900 Subject: Bug Fix : set source rectangle is wrong Change-Id: Iaab2eb79e95a4088bac4a038df8110781dd644f5 Signed-off-by: Kazumasa Mitsunari --- src/app.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app.cpp b/src/app.cpp index c0130d2..3bdabfd 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -1385,10 +1385,7 @@ bool App::api_set_role(char const *appid, char const *drawing_name, unsigned pid // this surface is already created HMI_DEBUG("wm", "surface_id is %u, layer_id is %u", surface, *lid); - const auto &o_layer = this->layers.get_layer(*lid); - auto rect = o_layer.value().rect; - this->controller->surfaces[surface]->set_source_rectangle(rect.x, rect.y, rect.w, rect.h); - + this->surface_set_layout(surface); this->controller->layers[*lid]->add_surface(surface); this->layout_commit(); -- cgit 1.2.3-korg