From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: Re: [PATCH] ioemu: sdl without OpenGl fix Date: Sat, 12 Jul 2008 15:53:48 +0100 Message-ID: <4878C57C.4070105@eu.citrix.com> References: <4877EAD5.7040107@cat-lan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4877EAD5.7040107@cat-lan.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?UTF-8?B?RnLDqWTDqXJpYyBHdWlow6lyeQ==?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Fr=C3=A9d=C3=A9ric Guih=C3=A9ry wrote: > Hi, >=20 > 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 windo= w > just stoppped when there were a call to ds->dpy_setdata, because the > pointer was not set. >=20 > Kind regards, > Fr=C3=A9d=C3=A9ric Guih=C3=A9ry >=20 > Signed-off-by: Fr=C3=A9d=C3=A9ric Guih=C3=A9ry >=20 Acked-by: Stefano Stabellini >=20 > 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 =3D opengl_setdata; > else > ds->dpy_setdata =3D sdl_setdata; > +#else > + ds->dpy_setdata =3D sdl_setdata; > #endif >=20 > sdl_resize(ds, 640, 400); >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel