From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Guih=E9ry?= Subject: [PATCH] ioemu: sdl without OpenGl fix Date: Sat, 12 Jul 2008 01:20:53 +0200 Message-ID: <4877EAD5.7040107@cat-lan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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=E9d=E9ric Guih=E9ry Signed-off-by: Fr=E9d=E9ric Guih=E9ry 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 sdl_resize(ds, 640, 400);