Commit 6e60065f882d0e552bab1920402780b000a63700
1 parent
413bfb7c
Fix SDL slowness.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6373 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
sdl.c
@@ -62,7 +62,7 @@ static void sdl_update(DisplayState *ds, int x, int y, int w, int h) | @@ -62,7 +62,7 @@ static void sdl_update(DisplayState *ds, int x, int y, int w, int h) | ||
62 | // printf("updating x=%d y=%d w=%d h=%d\n", x, y, w, h); | 62 | // printf("updating x=%d y=%d w=%d h=%d\n", x, y, w, h); |
63 | 63 | ||
64 | SDL_BlitSurface(guest_screen, &rec, real_screen, &rec); | 64 | SDL_BlitSurface(guest_screen, &rec, real_screen, &rec); |
65 | - SDL_Flip(real_screen); | 65 | + SDL_UpdateRect(real_screen, x, y, w, h); |
66 | } | 66 | } |
67 | 67 | ||
68 | static void sdl_setdata(DisplayState *ds) | 68 | static void sdl_setdata(DisplayState *ds) |