diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-10-29 13:52:37 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-10-29 13:52:37 +0900 |
commit | 8c105ed48229fda2b2552ae28aacd03566d5db8f (patch) | |
tree | 13523bfbfc505d71b5523fa1805e53aa2a2e0181 | |
parent | 52a0047cae7b920e2add10af8e6a335138d468f7 (diff) |
Set source rectangle when surface created
Change-Id: I74be18238f725a9fd2c7ab6a741bef86a95938f1
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r-- | src/wm_layer_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wm_layer_control.cpp b/src/wm_layer_control.cpp index 31a5482..3d1d257 100644 --- a/src/wm_layer_control.cpp +++ b/src/wm_layer_control.cpp @@ -462,6 +462,7 @@ void LayerControl::dispatchCreateEvent(ilmObjectType object, unsigned id, bool c return; } this->cb.surfaceCreated(sp.creatorPid, id); + ilm_surfaceSetSourceRectangle(id, 0, 0, sp.origSourceWidth, sp.origSourceHeight); ilm_surfaceAddNotification(id, surfaceCallback_static); ilm_surfaceSetVisibility(id, ILM_TRUE); ilm_surfaceSetType(id, ILM_SURFACETYPE_DESKTOP); |