Displaying 2 results from an estimated 2 matches for "sdl_setdata".
2008 Jul 10
0
[PATCH] ioemu : sdl without OpenGl fix
...t;
diff -r 2d100fe81044 tools/ioemu/sdl.c
--- a/tools/ioemu/sdl.c Wed Jul 09 16:00:05 2008 +0100
+++ b/tools/ioemu/sdl.c Thu Jul 10 14:58:05 2008 +0200
@@ -777,6 +777,8 @@ void sdl_display_init(DisplayState *ds,
ds->dpy_setdata = opengl_setdata;
else
ds->dpy_setdata = sdl_setdata;
+#else
+ ds->dpy_setdata = sdl_setdata;
#endif
sdl_resize(ds, 640, 400);
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...een);
+ SDL_Rect rec;
+ rec.x = x;
+ rec.y = y;
+ rec.w = w;
+ rec.h = h;
+ // printf("updating x=%d y=%d w=%d h=%d\n", x, y, w, h);i
+
+ SDL_BlitSurface(guest_screen, &rec, real_screen, &rec);
+ SDL_UpdateRect(real_screen, x, y, w, h);
}
-static void sdl_setdata(DisplayState *ds, void *pixels)
+static void sdl_setdata(DisplayState *ds)
{
- uint32_t rmask, gmask, bmask, amask = 0;
- switch (ds_get_bits_per_pixel(ds)) {
- case 8:
- rmask = 0x000000E0;
- gmask = 0x0000001C;
- bmask = 0x00000003;
- brea...