return;
}
- dpy_surface = new_surface;
console_width = surface_width(new_surface);
console_height = surface_height(new_surface);
- INFO("qemu_ds_sdl_switch : (%d, %d)\n",
- console_width, console_height);
+ INFO("qemu_ds_sdl_switch : (%d, %d)\n", console_width, console_height);
#ifdef SDL_THREAD
pthread_mutex_lock(&sdl_mutex);
#endif
+ /* switch */
+ dpy_surface = new_surface;
+
if (surface_qemu != NULL) {
SDL_FreeSurface(surface_qemu);
surface_qemu = NULL;
static void qemu_update(void)
{
- if (sdl_alteration == -1) {
+ if (sdl_alteration < 0) {
SDL_FreeSurface(scaled_screen);
SDL_FreeSurface(rotated_screen);
SDL_FreeSurface(surface_qemu);