aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sdl.c b/sdl.c
index 73396e86ad..cddf67243b 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);
}