Fixed sluggish mouse cursor on restart/restore screen.
svn-id: r29555
This commit is contained in:
parent
9195905008
commit
ade0b5a212
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue