static void sdl_update(DisplayState *ds, int x, int y, int w, int h)
{
+ // printf("updating x=%d y=%d w=%d h=%d\n", x, y, w, h);
SDL_UpdateRect(screen, x, y, w, h);
}
}
}
+static void sdl_cleanup(void)
+{
+ SDL_Quit();
+}
+
void sdl_display_init(DisplayState *ds)
{
int flags;
SDL_WM_SetCaption("QEMU", "QEMU");
SDL_EnableKeyRepeat(250, 50);
gui_grab = 0;
+
+ atexit(sdl_cleanup);
}