tizen/src/maru_sdl.c: Fix SDL_Quit() call and invalidation handling
authorEvgeny Voevodin <e.voevodin@samsung.com>
Thu, 14 Jun 2012 10:49:20 +0000 (14:49 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Fri, 15 Jun 2012 07:24:57 +0000 (11:24 +0400)
SDL_Quit is called at exit.
Added invalidate when SDL video mode changes.

Signed-off-by: Evgeny Voevodin <e.voevodin@samsung.com>
tizen/src/maru_sdl.c

index 55574e58cb10ccbf9b701550f70ee6e7728aeaab..7fa72e6596abd9f4db0a3d0a1398d6fe2258a25c 100644 (file)
@@ -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: {