Keep sound paused if it was paused when entering the gui

svn-id: r4313
This commit is contained in:
Nicolas Bacca 2002-05-14 07:58:58 +00:00
parent 3fea602590
commit f8411e8b3a
2 changed files with 3 additions and 1 deletions

View file

@ -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;