From e12687576d5345eb26ea99b5355cd6974b40c7cc Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 10 Sep 2018 09:57:58 +0900 Subject: Fix the set property of layer source rectangle source x,y should be 0,0 and then set destination sets offset and scaling Change-Id: I8e503e49ac7d186a7736b0e675838e5559deb7fd Signed-off-by: Kazumasa Mitsunari --- src/wm_layer_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 813e4ab..e6c406b 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -357,7 +357,7 @@ WMError LayerControl::layoutChange(const WMAction& action) // WMError ret = this->setLayerSize(layer, action.area); auto rect = this->getAreaSize(action.area); HMI_DEBUG("Set layout %d, %d, %d, %d",rect.x, rect.y, rect.w, rect.h); - ilm_layerSetSourceRectangle(layer, rect.x, rect.y, rect.w, rect.h); + ilm_layerSetSourceRectangle(layer, 0, 0, rect.w, rect.h); ilm_layerSetDestinationRectangle(layer, rect.x, rect.y, rect.w, rect.h); for(auto &wm_layer: this->wm_layers) { -- cgit 1.2.3-korg