diff options
author | 2018-06-08 11:54:01 +0900 | |
---|---|---|
committer | 2018-06-08 11:54:23 +0900 | |
commit | 6a01f1dd20e9438c15ebcd434273a79f404429ab (patch) | |
tree | 867235a81285be92f0dd9909913f14ed38d29290 | |
parent | 7f6ceaf920b5cb0d5984b8e8294f8ce0f52dfbbb (diff) |
Insert hack code
drawing_name is vanished by some reason, so reallocate it for hack for split.
Change-Id: I2a36d32cb083c66722dfbc766a4704afb637b413
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/app.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/app.cpp b/src/app.cpp index 386524d..08a9371 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -759,17 +759,20 @@ void App::lm_layout_change(const char *drawing_name) compositor::rect area_rect_main = this->area_info[state.main]; compositor::rect area_rect_sub = this->area_info[*surface_id]; // >>> HACK - HMI_WARNING("wm", "HACK!!!"); - std::string hack_appid = "hack"; + HMI_WARNING("wm", "HACK!!! mediaplayer and hvac is only supported for split"); + std::string request_role = drawing_name; + //std::string request_app = transform(request_role.begin(), request_role.end(), request_role.begin(), tolower); //hvac or mediaplayer + std::string hack_appid = "navigation"; std::string hack_role = main; std::string hack_area = str_area_main; g_app_list.setAction(g_app_list.currentRequestNumber(), hack_appid, hack_role, hack_area, true); - g_app_list.setEndDrawFinished(g_app_list.currentRequestNumber(), hack_appid, hack_role); // This process is illegal + //g_app_list.setEndDrawFinished(g_app_list.currentRequestNumber(), request_role, request_role); + //g_app_list.setEndDrawFinished(g_app_list.currentRequestNumber(), hack_appid, hack_role); // This process is illegal // >>> HACK this->emit_syncdraw(main.c_str(), str_area_main.c_str(), area_rect_main.x, area_rect_main.y, area_rect_main.w, area_rect_main.h); - this->emit_syncdraw(drawing_name, str_area_sub.c_str(), + this->emit_syncdraw(request_role.c_str(), str_area_sub.c_str(), area_rect_sub.x, area_rect_sub.y, area_rect_sub.w, area_rect_sub.h); this->enqueue_flushdraw(state.main); |