modify rect size in set role sandbox/zheng_wenlong/set_role_pid_ver
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Fri, 15 Jun 2018 06:56:30 +0000 (15:56 +0900)
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>
Fri, 15 Jun 2018 06:56:30 +0000 (15:56 +0900)
src/app.cpp

index da503b5..895b63a 100644 (file)
@@ -1385,6 +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);
 
+    this->controller->surfaces[surface]->set_source_rectangle(0, 0, 1080, 1488);
     this->controller->layers[*lid]->add_surface(surface);
     this->layout_commit();