aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-15 17:15:57 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-15 17:15:57 +0900
commit08e31b6b18e8f09ea1df922e5d088f151a49d9c5 (patch)
treea5f23981e42bd588da46e5f6e1580d40422783b2
parent0475c3cea96013a2376f85b731541fcafc7f6816 (diff)
Bug Fix : set source rectangle is wrong
Change-Id: Iaab2eb79e95a4088bac4a038df8110781dd644f5 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/app.cpp5
1 files changed, 1 insertions, 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();