[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-3.3-testing] sdl screen update: do not use SDL_Flip



commit afaef335c84f088dfd22fc0ac1d257b36dbf517d
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Wed Jul 8 14:55:45 2009 +0100

    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 <stefano.stabellini@xxxxxxxxxxxxx>
    
    [ submitted by Stefano for 3.3-testing -iwj ]
---
 sdl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdl.c b/sdl.c
index 9afd884..4f8b7f5 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;
--
generated by git-patchbot for /home/xen/git/qemu-xen-3.3-testing.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.