Don't update the screen twice while waiting
svn-id: r47254
This commit is contained in:
parent
33db6acd7f
commit
61e792319d
1 changed files with 0 additions and 1 deletions
|
@ -711,7 +711,6 @@ void kernel_sleep(SciEvent *event, uint32 msecs ) {
|
||||||
// let backend process events and update the screen
|
// let backend process events and update the screen
|
||||||
event->get(SCI_EVENT_PEEK);
|
event->get(SCI_EVENT_PEEK);
|
||||||
// TODO: we need to call Cursor::refreshPosition() before each screen update to limit the mouse cursor position
|
// TODO: we need to call Cursor::refreshPosition() before each screen update to limit the mouse cursor position
|
||||||
g_system->updateScreen();
|
|
||||||
time = g_system->getMillis();
|
time = g_system->getMillis();
|
||||||
if (time + 10 < wakeup_time) {
|
if (time + 10 < wakeup_time) {
|
||||||
g_system->delayMillis(10);
|
g_system->delayMillis(10);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue