diff options
author | dhewg | 2011-03-14 17:50:19 +0100 |
---|---|---|
committer | dhewg | 2011-03-14 19:35:35 +0100 |
commit | e1575e57f818f57b022531f31161e521869d7483 (patch) | |
tree | fb5db2ab0fff4b5c1a8ed051f6435b2e713a9115 /backends/platform/android/android.cpp | |
parent | 57635fe75cdf01a654d760efa0528a2aa186a391 (diff) | |
download | scummvm-rg350-e1575e57f818f57b022531f31161e521869d7483.tar.gz scummvm-rg350-e1575e57f818f57b022531f31161e521869d7483.tar.bz2 scummvm-rg350-e1575e57f818f57b022531f31161e521869d7483.zip |
ANDROID: Extend clearScreen to take care of all cases
Hopefully that'll help me to not forget about the double buffering.
This fixes some gfx leftovers when not running games in fullscreen
mode.
Diffstat (limited to 'backends/platform/android/android.cpp')
-rw-r--r-- | backends/platform/android/android.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp index 85d4817f29..7731c53873 100644 --- a/backends/platform/android/android.cpp +++ b/backends/platform/android/android.cpp @@ -438,10 +438,7 @@ bool OSystem_Android::pollEvent(Common::Event &event) { updateScreenRect(); // double buffered, flip twice - _force_redraw = true; - updateScreen(); - _force_redraw = true; - updateScreen(); + clearScreen(kClearUpdate, 2); event.type = Common::EVENT_SCREEN_CHANGED; @@ -451,8 +448,8 @@ bool OSystem_Android::pollEvent(Common::Event &event) { initSurface(); updateScreenRect(); - _force_redraw = true; - updateScreen(); + // double buffered, flip twice + clearScreen(kClearUpdate, 2); event.type = Common::EVENT_SCREEN_CHANGED; |