Keep sound paused if it was paused when entering the gui
svn-id: r4313
This commit is contained in:
parent
3fea602590
commit
f8411e8b3a
2 changed files with 3 additions and 1 deletions
3
gui.cpp
3
gui.cpp
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue