Skip to contentSkip to conversation

[6373] Fix SDL slowness.

Qemu-devel Paul Brook 1 participant 1 message Jan 21, 2009

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 6373

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6373
Author:   pbrook
Date:     2009-01-21 01:50:17 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Fix SDL slowness.

Modified Paths:
--------------
trunk/sdl.c

Modified: trunk/sdl.c
===================================================================

sdl.c +1 -1
@@ -62,7 +62,7 @@
     //    printf("updating x=%d y=%d w=%d h=%d\n", x, y, w, h);
 
     SDL_BlitSurface(guest_screen, &rec, real_screen, &rec);
-    SDL_Flip(real_screen);
+    SDL_UpdateRect(real_screen, x, y, w, h);
 }
 
 static void sdl_setdata(DisplayState *ds)