SDL_Quit is called at exit.
Added invalidate when SDL video mode changes.
Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
}
pthread_mutex_lock(&sdl_mutex);
-
+#ifndef TARGET_ARM
+ /* FIXME: For some reason quit should be called here for x86*/
SDL_Quit(); //The returned surface is freed by SDL_Quit and must not be freed by the caller
+#endif
surface_screen = SDL_SetVideoMode(w, h, SDL_BPP, SDL_FLAGS);
if (surface_screen == NULL) {
ERR("Could not open SDL display (%dx%dx%d): %s\n", w, h, SDL_BPP, SDL_GetError());
}
pthread_mutex_unlock(&sdl_mutex);
-
+ vga_hw_invalidate();
break;
}
case SDL_USEREVENT: {