[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] SDL clean exiting
From: |
Martin Garton |
Subject: |
[Qemu-devel] SDL clean exiting |
Date: |
Thu, 5 Feb 2004 14:11:14 +0000 (GMT) |
Hi,
Run qemu with the sdl gui enabled. Click in the window to grab the mouse
and press ctrl-alt-del to reset.
This exits qemu as expected, but leaves the mouse "grabbed"
This is because sdl is not shut down cleanly. The attached patch against
0.5.2 Works For Me.
Regards,
Martin.
diff -ur qemu-0.5.2/sdl.c qemu-0.5.2_martin/sdl.c
--- qemu-0.5.2/sdl.c 2004-01-25 15:50:02.000000000 +0000
+++ qemu-0.5.2_martin/sdl.c 2004-02-05 13:35:04.000000000 +0000
@@ -257,6 +257,10 @@
}
}
+static void sdl_cleanup(void) {
+ SDL_Quit();
+}
+
void sdl_display_init(DisplayState *ds)
{
int flags;
@@ -278,4 +282,7 @@
SDL_WM_SetCaption("QEMU", "QEMU");
SDL_EnableKeyRepeat(250, 50);
gui_grab = 0;
+
+ atexit(sdl_cleanup);
}
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] SDL clean exiting,
Martin Garton <=