Fixed sluggish mouse cursor on restart/restore screen.

svn-id: r29555
This commit is contained in:
Torbjörn Andersson 2007-11-18 10:08:43 +00:00
parent 9195905008
commit ade0b5a212

View File

@ -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) &&