From: malc Date: Wed, 21 Jan 2009 00:34:46 +0000 (+0000) Subject: Remove real_screen->pixels checks X-Git-Tag: stefano.display-merge-end~69 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=413bfb7cfc4e7f886ad35d610056ad8da8deab8a;p=qemu-xen-3.4-testing.git Remove real_screen->pixels checks git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6372 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/sdl.c b/sdl.c index 73396e86..cddf6724 100644 --- a/sdl.c +++ b/sdl.c @@ -93,21 +93,11 @@ static void sdl_resize(DisplayState *ds) if (gui_noframe) flags |= SDL_NOFRAME; - again: real_screen = SDL_SetVideoMode(ds_get_width(ds), ds_get_height(ds), 0, flags); if (!real_screen) { fprintf(stderr, "Could not open SDL display\n"); exit(1); } - if (!real_screen->pixels && (flags & SDL_HWSURFACE) && (flags & SDL_FULLSCREEN)) { - flags &= ~SDL_HWSURFACE; - goto again; - } - - if (!real_screen->pixels) { - fprintf(stderr, "Could not open SDL display\n"); - exit(1); - } sdl_setdata(ds); }