aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-11 02:08:05 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2006-12-11 02:08:05 +0000
commit667accab8e3cee23597e4a3af7b06c7efceb2a92 (patch)
tree3acd2a0b1bbfe8ed6f2a8898f86c6cce4a478ed5 /sdl.c
parenta2d4e44b485222a8972ea9e555b148148c655bb9 (diff)
Implement -no-quit option, by Xavier Gnata.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2239 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index e65dcac9c5..b58e9d6794 100644
--- a/sdl.c
+++ b/sdl.c
@@ -496,7 +496,9 @@ static void sdl_refresh(DisplayState *ds)
sdl_process_key(&ev->key);
break;
case SDL_QUIT:
- qemu_system_shutdown_request();
+ if (!no_quit) {
+ qemu_system_shutdown_request();
+ }
break;
case SDL_MOUSEMOTION:
if (gui_grab || kbd_mouse_is_absolute()) {