aboutsummaryrefslogtreecommitdiffstats
path: root/src/wm_layer_control.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 18:35:31 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 18:35:44 +0900
commit915faae5e2901f2112a680586582a282c44dc401 (patch)
tree075fe49f72bfff3b9386765b0270882004e15101 /src/wm_layer_control.cpp
parenta3ed61b74c04da98756af1f583e72b53891adc58 (diff)
Bug Fix : wm_layer
Change-Id: I6048e6e5b98fcea167e5a0bc03e7f0e9761ff8af Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_layer_control.cpp')
-rw-r--r--src/wm_layer_control.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp
index 86616e8..325598d 100644
--- a/src/wm_layer_control.cpp
+++ b/src/wm_layer_control.cpp
@@ -69,10 +69,11 @@ LayerControl::LayerControl(const std::string& root)
WMError LayerControl::init(const LayerControlCallbacks& cb)
{
- ilmErrorTypes rc = ilm_init();
+ HMI_DEBUG("Initialize of ilm library and display");
t_ilm_uint num = 0;
t_ilm_uint *ids;
int cnt = 0;
+ ilmErrorTypes rc = ilm_init();
while (rc != ILM_SUCCESS)
{
@@ -84,7 +85,7 @@ WMError LayerControl::init(const LayerControlCallbacks& cb)
}
HMI_ERROR("Wait to start weston ...");
sleep(1);
- ilm_init();
+ rc = ilm_init();
}
if(rc != ILM_SUCCESS) goto lc_init_error;
@@ -164,7 +165,7 @@ void LayerControl::setupArea(double scaling)
i.second.w = static_cast<int>(scaling * i.second.w + 0.5);
i.second.h = static_cast<int>(scaling * i.second.h + 0.5);
- HMI_DEBUG("wm:lm", "area:%s size(after) : x:%d y:%d w:%d h:%d",
+ HMI_DEBUG("area:%s size(after) : x:%d y:%d w:%d h:%d",
i.first.c_str(), i.second.x, i.second.y, i.second.w, i.second.h);
}
}