"height and bits-per-pixel\n");
#ifdef SDL_THREAD
- pthread_mutex_lock(&sdl_mutex);
+ pthread_mutex_lock(&sdl_mutex);
#endif
sdl_alteration = 1;
/* remove multi-touch finger points */
cleanup_multi_touch_state();
- sdl_alteration = -1;
-
if (sdl_init_bh != NULL) {
qemu_bh_delete(sdl_init_bh);
}
qemu_bh_delete(sdl_resize_bh);
}
+#ifdef SDL_THREAD
+ pthread_mutex_lock(&sdl_mutex);
+#endif
+
+ sdl_alteration = -1;
+
SDL_Quit();
#ifdef SDL_THREAD
+ pthread_mutex_unlock(&sdl_mutex);
pthread_cond_destroy(&sdl_cond);
#endif
+
pthread_mutex_destroy(&sdl_mutex);
}
-
void maruskin_sdl_resize(void)
{
INFO("maru sdl resize\n");