mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
fix buggy repaints caused by multiple calls to the overlay toggles
svn-id: r35593
This commit is contained in:
parent
25ac7c7fb0
commit
ec09d76b18
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user