diff options
author | Lothar Serra Mari | 2016-04-05 10:06:41 +0200 |
---|---|---|
committer | Thierry Crozat | 2016-04-05 20:31:15 +0100 |
commit | 841f87bf47821aa1e50969772376180aa287808d (patch) | |
tree | 0d018d6f75619e6a087b875c923924494f9a2cc5 /gui | |
parent | 6775d86d0647ada89972f0eb9531c3a857274332 (diff) | |
download | scummvm-rg350-841f87bf47821aa1e50969772376180aa287808d.tar.gz scummvm-rg350-841f87bf47821aa1e50969772376180aa287808d.tar.bz2 scummvm-rg350-841f87bf47821aa1e50969772376180aa287808d.zip |
GUI: Update _lastRedraw before calling updateScreen
This reduces the cursor lags on some systems.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/gui-manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp index 20c6d3fa13..6ac52487d1 100644 --- a/gui/gui-manager.cpp +++ b/gui/gui-manager.cpp @@ -304,9 +304,9 @@ void GuiManager::runLoop() { // _system->updateScreen(); if (lastRedraw + waitTime < _system->getMillis(true)) { + lastRedraw = _system->getMillis(true); _theme->updateScreen(); _system->updateScreen(); - lastRedraw = _system->getMillis(true); } Common::Event event; @@ -342,9 +342,9 @@ void GuiManager::runLoop() { if (lastRedraw + waitTime < _system->getMillis(true)) { + lastRedraw = _system->getMillis(true); _theme->updateScreen(); _system->updateScreen(); - lastRedraw = _system->getMillis(true); } } |