From: Evgeny Voevodin Date: Thu, 14 Jun 2012 10:49:20 +0000 (+0400) Subject: tizen/src/maru_sdl.c: Fix SDL_Quit() call and invalidation handling X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=078f3527c6bf996c71bcc910d6b44bb7fe2975ec;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/tizen/src/maru_sdl.c b/tizen/src/maru_sdl.c index 55574e58cb..7fa72e6596 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: {