WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-3.3-testing] sdl screen update: do not use SDL_Flip
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Mon, 13 Jul 2009 07:40:03 -0700
Delivery-date: Mon, 13 Jul 2009 07:40:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-3.3-testing] sdl screen update: do not use SDL_Flip, Ian Jackson <=