From 078f3527c6bf996c71bcc910d6b44bb7fe2975ec Mon Sep 17 00:00:00 2001 From: Evgeny Voevodin Date: Thu, 14 Jun 2012 14:49:20 +0400 Subject: [PATCH] tizen/src/maru_sdl.c: Fix SDL_Quit() call and invalidation handling SDL_Quit is called at exit. Added invalidate when SDL video mode changes. Signed-off-by: Evgeny Voevodin --- tizen/src/maru_sdl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tizen/src/maru_sdl.c b/tizen/src/maru_sdl.c index 55574e5..7fa72e6 100644 --- a/tizen/src/maru_sdl.c +++ b/tizen/src/maru_sdl.c @@ -259,15 +259,17 @@ static void qemu_ds_refresh(DisplayState *ds) } 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: { -- 2.7.4