Made the Lure engine call updateScreen() more often - particularly when using

the menu bar at the top of the window - for smoother mouse movement. (After a
discussion with sev.)

svn-id: r21992
This commit is contained in:
Torbjörn Andersson 2006-04-17 23:37:22 +00:00
parent c17350958d
commit 72906f2508
2 changed files with 2 additions and 2 deletions

View File

@ -172,6 +172,7 @@ void Game::execute() {
playerChangeRoom();
}
system.updateScreen();
system.delayMillis(10);
}

View File

@ -103,7 +103,6 @@ uint8 Menu::execute() {
mouse.setCursorNum(CURSOR_ARROW);
system.copyRectToScreen(_menu->data(), FULL_SCREEN_WIDTH, 0, 0,
FULL_SCREEN_WIDTH, MENUBAR_Y_SIZE);
system.updateScreen();
_selectedMenu = NULL;
_surfaceMenu = NULL;
@ -143,7 +142,6 @@ uint8 Menu::execute() {
system.copyRectToScreen(_menu->data(), FULL_SCREEN_WIDTH, 0, 0,
FULL_SCREEN_WIDTH, MENUBAR_Y_SIZE);
system.updateScreen();
}
}
@ -156,6 +154,7 @@ uint8 Menu::execute() {
}
}
system.updateScreen();
system.delayMillis(10);
}