aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-21 17:56:50 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-21 17:56:50 +0000
commit731345e17b8a34f88eeb75c582f19e9790e7d834 (patch)
treed056f9e71c02706615709d0aaa381bdd54efa789 /sdl.c
parentd60532ca8f551d226b2a1cab46fb4d6611ee0ea8 (diff)
Unpause the emulation after shutdown request on SDL close, so that it can take effect.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2989 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index 326935a78f..5e70ac08b3 100644
--- a/sdl.c
+++ b/sdl.c
@@ -451,7 +451,8 @@ static void sdl_refresh(DisplayState *ds)
break;
case SDL_QUIT:
if (!no_quit) {
- qemu_system_shutdown_request();
+ qemu_system_shutdown_request();
+ vm_start(); /* In case we're paused */
}
break;
case SDL_MOUSEMOTION: