diff options
author | Nicolas Bacca | 2002-05-14 07:58:58 +0000 |
---|---|---|
committer | Nicolas Bacca | 2002-05-14 07:58:58 +0000 |
commit | f8411e8b3a0bfbf050f9b54893b7983cc40c2abb (patch) | |
tree | b19bbd0392662682684efef2186b5dac947ae6ef | |
parent | 3fea6025907a344f181906305912c42ee648df46 (diff) | |
download | scummvm-rg350-f8411e8b3a0bfbf050f9b54893b7983cc40c2abb.tar.gz scummvm-rg350-f8411e8b3a0bfbf050f9b54893b7983cc40c2abb.tar.bz2 scummvm-rg350-f8411e8b3a0bfbf050f9b54893b7983cc40c2abb.zip |
Keep sound paused if it was paused when entering the gui
svn-id: r4313
-rw-r--r-- | gui.cpp | 3 | ||||
-rw-r--r-- | gui.h | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -950,6 +950,7 @@ void Gui::loop() if (_active && !_inited) { _inited = true; draw(0, 200); // was 100 + _old_soundsPaused = _s->_soundsPaused; _s->pauseSounds(true); // Backup old cursor @@ -1004,7 +1005,7 @@ void Gui::close() _s->_system->show_mouse(_old_cursor_mode); - _s->pauseSounds(false); + _s->pauseSounds(_old_soundsPaused); _active = false; _inited = false; @@ -60,6 +60,7 @@ protected: byte _dialog; int _clickWidget; char *_queryMess; + bool _old_soundsPaused; // mouse cursor state bool _old_cursor_mode; |