diff options
author | Kostas Nakos | 2008-12-28 20:16:53 +0000 |
---|---|---|
committer | Kostas Nakos | 2008-12-28 20:16:53 +0000 |
commit | ec09d76b18353155b49d30d4b3f1b47c3ac5cc87 (patch) | |
tree | b6a8386d2b2ab09961c3636c7904cd495fd297f3 | |
parent | 25ac7c7fb0566202f0241ca88f950e38af156d07 (diff) | |
download | scummvm-rg350-ec09d76b18353155b49d30d4b3f1b47c3ac5cc87.tar.gz scummvm-rg350-ec09d76b18353155b49d30d4b3f1b47c3ac5cc87.tar.bz2 scummvm-rg350-ec09d76b18353155b49d30d4b3f1b47c3ac5cc87.zip |
fix buggy repaints caused by multiple calls to the overlay toggles
svn-id: r35593
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index 06dbe4f227..b08cfbbead 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -2118,6 +2118,9 @@ void OSystem_WINCE3::blitCursor() { void OSystem_WINCE3::showOverlay() { assert (_transactionMode == kTransactionNone); + if (_overlayVisible) + return; + undrawMouse(); _overlayVisible = true; update_scalers(); @@ -2127,8 +2130,10 @@ void OSystem_WINCE3::showOverlay() { void OSystem_WINCE3::hideOverlay() { assert (_transactionMode == kTransactionNone); - undrawMouse(); + if (!_overlayVisible) + return; + undrawMouse(); _overlayVisible = false; clearOverlay(); _forceFull = true; |