Don't update the screen twice while waiting

svn-id: r47254
This commit is contained in:
Filippos Karapetis 2010-01-11 16:33:00 +00:00
parent 33db6acd7f
commit 61e792319d

View file

@ -711,7 +711,6 @@ void kernel_sleep(SciEvent *event, uint32 msecs ) {
// let backend process events and update the screen
event->get(SCI_EVENT_PEEK);
// TODO: we need to call Cursor::refreshPosition() before each screen update to limit the mouse cursor position
g_system->updateScreen();
time = g_system->getMillis();
if (time + 10 < wakeup_time) {
g_system->delayMillis(10);