video/sdl_v.c
changeset 5217 7a9e91919a93
parent 5173 91e541fbae4e
child 5380 8ea58542b6e0
--- a/video/sdl_v.c	Sun Dec 03 17:27:43 2006 +0000
+++ b/video/sdl_v.c	Sun Dec 03 17:42:56 2006 +0000
@@ -495,7 +495,7 @@
 {
 	_fullscreen = full_screen;
 	GetVideoModes(); // get the list of available video modes
-	if (!_video_driver->change_resolution(_cur_resolution[0], _cur_resolution[1])) {
+	if (_num_resolutions == 0 || !_video_driver->change_resolution(_cur_resolution[0], _cur_resolution[1])) {
 		// switching resolution failed, put back full_screen to original status
 		_fullscreen ^= true;
 	}