Skip to contentSkip to conversation

[6372] Remove real_screen->pixels checks

Qemu-devel malc 1 participant 1 message Jan 21, 2009

lore
Share & tools
lore

malc

author
#0 lore raw

Revision: 6372

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6372
Author:   malc
Date:     2009-01-21 00:34:46 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Remove real_screen->pixels checks

Modified Paths:
--------------
trunk/sdl.c

Modified: trunk/sdl.c
===================================================================

sdl.c +0 -10
@@ -93,22 +93,12 @@
     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);
 }