mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Fixed sluggish mouse cursor on restart/restore screen.
svn-id: r29555
This commit is contained in:
parent
9195905008
commit
ade0b5a212
@ -898,15 +898,21 @@ bool RestartRestoreDialog::show() {
|
||||
screen.paletteFadeIn(&p);
|
||||
|
||||
// Event loop for making selection
|
||||
bool buttonPressed = false;
|
||||
|
||||
while (!events.quitFlag) {
|
||||
// Handle events
|
||||
if (events.pollEvent()) {
|
||||
while (events.pollEvent()) {
|
||||
if ((events.type() == Common::EVENT_LBUTTONDOWN) && (highlightedButton != -1)) {
|
||||
mouse.waitForRelease();
|
||||
buttonPressed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (buttonPressed)
|
||||
break;
|
||||
|
||||
// Check if the pointer is over either button
|
||||
int currentButton = -1;
|
||||
if ((mouse.y() >= btnRecord->BtnRestart.y) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user