From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: [PATCH] ioemu : sdl without OpenGl fix Date: Thu, 10 Jul 2008 15:11:04 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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=C3=A9d=C3=A9ric Guih=C3=A9ry Signed-off-by: Fr=C3=A9d=C3=A9ric Guih=C3=A9ry 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,=20 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);