ui: window masking
authorGiWoong Kim <giwoong.kim@samsung.com>
Sat, 2 May 2015 08:43:59 +0000 (17:43 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Mon, 4 May 2015 03:23:58 +0000 (12:23 +0900)
Under the resizing event handling sequence, A region mask
should be applied to the emulator window after layout changing.

Change-Id: I5fa3a3d9ff8ad7a6b266af8c78c25d49e52814db
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/ui/mainwindow.cpp

index 3b6b612..e02c59f 100644 (file)
@@ -382,6 +382,8 @@ void MainWindow::switchForm(int index)
             uiInfo->getMainFormDisplayType()->getRect(),
             uiInfo->getMainFormDisplayType()->getAngle());
     }
+
+    setMask(uiInfo->getUiRegion());
 }
 
 void MainWindow::scaleForm(int scale)
@@ -400,6 +402,8 @@ void MainWindow::scaleForm(int scale)
     if (display != NULL) {
         display->scale(getUIState()->getScaleFactor());
     }
+
+    setMask(uiInfo->getUiRegion());
 }
 
 void MainWindow::capture(void)