aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/menu.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-11 11:55:27 +0000
committerTorbjörn Andersson2006-04-11 11:55:27 +0000
commitd846f9a5e1ca9e430b61341eb72d65ab969a1259 (patch)
tree75d6c041a93ec620a83ef4d0853243503034f058 /engines/lure/menu.cpp
parentcba4871140cec8a976c240fb9de87c16712e99cc (diff)
downloadscummvm-rg350-d846f9a5e1ca9e430b61341eb72d65ab969a1259.tar.gz
scummvm-rg350-d846f9a5e1ca9e430b61341eb72d65ab969a1259.tar.bz2
scummvm-rg350-d846f9a5e1ca9e430b61341eb72d65ab969a1259.zip
Added delays to the main and menu event loops to keep Lure from gobbling up all
available CPU time. svn-id: r21787
Diffstat (limited to 'engines/lure/menu.cpp')
-rw-r--r--engines/lure/menu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp
index 2f881934cc..ff6a6f4c4b 100644
--- a/engines/lure/menu.cpp
+++ b/engines/lure/menu.cpp
@@ -110,7 +110,7 @@ uint8 Menu::execute() {
_selectedIndex = 0;
while (mouse.lButton() || mouse.rButton()) {
- if (events.pollEvent()) {
+ while (events.pollEvent()) {
if (events.quitFlag) return MENUITEM_NONE;
if (mouse.y() < MENUBAR_Y_SIZE)
@@ -155,6 +155,8 @@ uint8 Menu::execute() {
if (_selectedIndex != 0) toggleHighlightItem(_selectedIndex);
}
}
+
+ system.delayMillis(10);
}
if (_surfaceMenu) delete _surfaceMenu;