mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
Fixed sluggish mouse cursor during palette fade ins/outs.
svn-id: r29535
This commit is contained in:
parent
f10f40aff0
commit
14ac86abe0
@ -117,7 +117,8 @@ void Screen::paletteFadeIn(Palette *p) {
|
||||
_system.setPalette(_palette->data(), 0, p->numEntries());
|
||||
_system.updateScreen();
|
||||
_system.delayMillis(20);
|
||||
events.pollEvent();
|
||||
while (events.pollEvent())
|
||||
;
|
||||
}
|
||||
} while (changed);
|
||||
}
|
||||
@ -149,7 +150,8 @@ void Screen::paletteFadeOut(int numEntries) {
|
||||
_system.setPalette(_palette->data(), 0, numEntries);
|
||||
_system.updateScreen();
|
||||
_system.delayMillis(20);
|
||||
events.pollEvent();
|
||||
while (events.pollEvent())
|
||||
;
|
||||
}
|
||||
} while (changed);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user