aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorLothar Serra Mari2016-04-05 10:06:41 +0200
committerThierry Crozat2016-04-05 20:31:15 +0100
commit841f87bf47821aa1e50969772376180aa287808d (patch)
tree0d018d6f75619e6a087b875c923924494f9a2cc5 /gui
parent6775d86d0647ada89972f0eb9531c3a857274332 (diff)
downloadscummvm-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.cpp4
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);
}
}