aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d/versailles/toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cryomni3d/versailles/toolbar.cpp')
-rw-r--r--engines/cryomni3d/versailles/toolbar.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/cryomni3d/versailles/toolbar.cpp b/engines/cryomni3d/versailles/toolbar.cpp
index f6884bd035..23b94b8c81 100644
--- a/engines/cryomni3d/versailles/toolbar.cpp
+++ b/engines/cryomni3d/versailles/toolbar.cpp
@@ -423,7 +423,10 @@ bool Toolbar::displayToolbar(const Graphics::Surface *original) {
g_system->copyRectToScreen(_destSurface.getPixels(), _destSurface.pitch, 0,
original->h - _destSurface.h, _destSurface.w, _destSurface.h);
g_system->updateScreen();
- // pollEvents will slow down the animation because it waits 10ms
+
+ // Slow down animation
+ g_system->delayMillis(10);
+
_engine->pollEvents();
if (g_engine->shouldQuit()) {
return false;
@@ -449,7 +452,10 @@ bool Toolbar::displayToolbar(const Graphics::Surface *original) {
g_system->copyRectToScreen(_destSurface.getPixels(), _destSurface.pitch, 0,
original->h - _destSurface.h, _destSurface.w, _destSurface.h);
g_system->updateScreen();
- // pollEvents will slow down the animation because it waits 10ms
+
+ // Slow down animation
+ g_system->delayMillis(10);
+
_engine->pollEvents();
if (g_engine->shouldQuit()) {
return false;
@@ -584,6 +590,7 @@ void Toolbar::handleToolbarEvents(const Graphics::Surface *original) {
}
g_system->updateScreen();
+ g_system->delayMillis(10);
}
// Hide description when finished and selected object