diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-10 09:57:58 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-09-10 09:57:58 +0900 |
commit | e12687576d5345eb26ea99b5355cd6974b40c7cc (patch) | |
tree | 6a9cd02f21dfb242a5a64f57a9aab8cf2fd1e03b | |
parent | b1f017ed5a12ab2dd305133c8c7f28deb3218a69 (diff) |
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 <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/wm_layer_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |