diff options
author | Florian Kagerer | 2008-12-28 22:09:31 +0000 |
---|---|---|
committer | Florian Kagerer | 2008-12-28 22:09:31 +0000 |
commit | d81782977e2f17f9906db7548023f748be09a6a6 (patch) | |
tree | e26c2194315c002de3dcd67904ce0d8add3cde93 /engines/kyra/gui.cpp | |
parent | fccaa73ae730b52193d84818f90ad4af1b76069f (diff) | |
download | scummvm-rg350-d81782977e2f17f9906db7548023f748be09a6a6.tar.gz scummvm-rg350-d81782977e2f17f9906db7548023f748be09a6a6.tar.bz2 scummvm-rg350-d81782977e2f17f9906db7548023f748be09a6a6.zip |
LOL: - fixed some bugs in the main menu code (premature pak file unloading etc.) and added floppy support
svn-id: r35595
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r-- | engines/kyra/gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp index f03f028b98..fd21e080fa 100644 --- a/engines/kyra/gui.cpp +++ b/engines/kyra/gui.cpp @@ -476,6 +476,12 @@ int MainMenu::handle(int dim) { Common::Rect menuRect(x + 16, y + 4, x + width - 16, y + 4 + fh * _static.menuTable[3]); + Common::Event evt; + while(_system->getEventManager()->pollEvent(evt)) { + if (evt.type != Common::EVENT_LBUTTONUP && evt.type != Common::EVENT_LBUTTONDOWN) + break; + } + while (!_vm->shouldQuit()) { updateAnimation(); bool mousePressed = getInput(); |