Skip to contentSkip to conversation

ioemu : sdl without OpenGl fix

PATCH New [email protected] 1 participant 1 message Jul 10, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioemu : sdl without OpenGl fix

Hi,

Here is a little patch for a bug introduced recently in the SDL ioemu rendering, in case we disable OpenGl. Without this patch, the SDL window just stoppped when there were a call to ds->dpy_setdata, because the pointer was not set.

Kind regards,
Frédéric Guihéry

tools/ioemu/sdl.c +2 -0
diff -r 2d100fe81044 tools/ioemu/sdl.c
@@ -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);