From afaef335c84f088dfd22fc0ac1d257b36dbf517d Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 8 Jul 2009 14:55:45 +0100 Subject: [PATCH] sdl screen update: do not use SDL_Flip Without this patch every time there is an update we refresh the whole screen! Signed-off-by: Stefano Stabellini [ submitted by Stefano for 3.3-testing -iwj ] --- sdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdl.c b/sdl.c index 9afd8840..4f8b7f56 100644 --- a/sdl.c +++ b/sdl.c @@ -171,7 +171,7 @@ static void sdl_update(DisplayState *ds, int x, int y, int w, int h) rec.h = h; SDL_BlitSurface(shared, &rec, screen, &rec); } - SDL_Flip(screen); + SDL_UpdateRect(screen, x, y, w, h); } static void sdl_setdata(DisplayState *ds, void *pixels) @@ -229,7 +229,7 @@ static void sdl_resize_shared(DisplayState *ds, int w, int h, int depth, int lin flags = SDL_OPENGL|SDL_RESIZABLE; else #endif - flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL|SDL_DOUBLEBUF|SDL_HWPALETTE; + flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL|SDL_HWPALETTE; if (gui_fullscreen) { flags |= SDL_FULLSCREEN; -- 2.39.5