ioemu: sdl without OpenGl fix
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Jul 2008 09:07:11 +0000 (10:07 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Jul 2008 09:07:11 +0000 (10:07 +0100)
Signed-off-by: Frederic Guihery <sygus@cat-lan.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/ioemu/sdl.c

index 6fc805506e06fa7b09c924c51452f716927823f8..a16b504c4dda3fd572f0f02028455c7b8f0dbc65 100644 (file)
@@ -772,11 +772,10 @@ void sdl_display_init(DisplayState *ds, int full_screen, int opengl)
     ds->dpy_resize = sdl_resize;
     ds->dpy_resize_shared = sdl_resize_shared;
     ds->dpy_refresh = sdl_refresh;
+    ds->dpy_setdata = sdl_setdata;
 #ifdef CONFIG_OPENGL
     if (opengl_enabled)
         ds->dpy_setdata = opengl_setdata;
-    else
-        ds->dpy_setdata = sdl_setdata;
 #endif
 
     sdl_resize(ds, 640, 400);