aboutsummaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 00:34:46 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-21 00:34:46 +0000
commit413bfb7cfc4e7f886ad35d610056ad8da8deab8a (patch)
tree5ee95b864d7d63ff70a45746ba7bdcb07e64545a /sdl.c
parent2e77eac62db82164e4c6200c928a315cd86bf7c4 (diff)
downloadqemu-413bfb7cfc4e7f886ad35d610056ad8da8deab8a.zip
qemu-413bfb7cfc4e7f886ad35d610056ad8da8deab8a.tar.gz
qemu-413bfb7cfc4e7f886ad35d610056ad8da8deab8a.tar.bz2
Remove real_screen->pixels checks
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6372 c046a42c-6fe2-441c-8c8c-71466251a162
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 73396e8..cddf672 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);
}