Fixed sluggish mouse cursor during palette fade ins/outs.

svn-id: r29535
This commit is contained in:
Torbjörn Andersson 2007-11-17 10:47:37 +00:00
parent f10f40aff0
commit 14ac86abe0

View File

@ -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);
}