aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authordhewg2011-02-24 23:49:07 +0100
committerdhewg2011-02-25 00:08:46 +0100
commitff11ab284adb30b0de9b80b7a8a9a19b3861e977 (patch)
tree2828473d0e1371f558fccf9d650cdca6fe7034ee /gui
parenta017cb3d00293c2f4c916c375fff172a6d962e33 (diff)
downloadscummvm-rg350-ff11ab284adb30b0de9b80b7a8a9a19b3861e977.tar.gz
scummvm-rg350-ff11ab284adb30b0de9b80b7a8a9a19b3861e977.tar.bz2
scummvm-rg350-ff11ab284adb30b0de9b80b7a8a9a19b3861e977.zip
Revert "GUI: Properly clear the screen buffer"
This reverts commit c8551b80dd917c35d367c1f15f4b9c2618da3684. Turns out the flicking comes from an updateScreen() call in android's clearScreen(). Besides, this broke GMM... a little
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index 235ea24fbe..026370abf1 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -421,9 +421,10 @@ bool ThemeEngine::init() {
}
void ThemeEngine::clearAll() {
- if (_initOk)
- memset(_screen.pixels, _overlayFormat.RGBToColor(0, 0, 0),
- _screen.w * _screen.h * sizeof(uint16));
+ if (_initOk) {
+ _system->clearOverlay();
+ _system->grabOverlay((OverlayColor *)_screen.pixels, _screen.w);
+ }
}
void ThemeEngine::refresh() {