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.h | |
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.h')
-rw-r--r-- | backends/platform/android/android.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/android/android.h b/backends/platform/android/android.h index 8e6d72fad2..db2cb95650 100644 --- a/backends/platform/android/android.h +++ b/backends/platform/android/android.h @@ -186,7 +186,15 @@ public: virtual void initSize(uint width, uint height, const Graphics::PixelFormat *format); - void clearScreen(bool swapBuffers); + + enum FixupType { + kClear = 0, // glClear + kClearSwap, // glClear + swapBuffers + kClearUpdate // glClear + updateScreen + }; + + void clearScreen(FixupType type, byte count = 1); + void updateScreenRect(); virtual int getScreenChangeID() const; |