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
Signed-off-by: Frédéric Guihéry <sygus@cat-lan.com>
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
Stefano Stabellini
2008-Jul-12 14:53 UTC
Re: [Xen-devel] [PATCH] ioemu: sdl without OpenGl fix
Frédéric Guihéry wrote:> 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 > > Signed-off-by: Frédéric Guihéry <sygus@cat-lan.com> >Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>> > 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_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel