summaryrefslogtreecommitdiff
path: root/video/sdl_v.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/sdl_v.c')
-rw-r--r--video/sdl_v.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c
index 8e997a857..b0a25a9d7 100644
--- a/video/sdl_v.c
+++ b/video/sdl_v.c
@@ -495,7 +495,7 @@ static void SdlVideoFullScreen(bool full_screen)
{
_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;
}