gfx.c
changeset 5217 21c23507c002
parent 5156 5edaa8f9b295
child 5373 d52b2caf1552
child 5568 75f13d7bfaed
--- a/gfx.c	Sun Dec 03 17:27:43 2006 +0000
+++ b/gfx.c	Sun Dec 03 17:42:56 2006 +0000
@@ -15,6 +15,7 @@
 #include "table/control_codes.h"
 #include "fontcache.h"
 #include "genworld.h"
+#include "debug.h"
 
 #ifdef _DEBUG
 bool _dbg_screen_rect;
@@ -1998,7 +1999,13 @@
 		_video_driver->change_resolution(w, h);
 }
 
-void ToggleFullScreen(bool fs) {_video_driver->toggle_fullscreen(fs);}
+void ToggleFullScreen(bool fs)
+{
+	_video_driver->toggle_fullscreen(fs);
+	if (_fullscreen != fs && _num_resolutions == 0) {
+		DEBUG(misc, 0) ("Could not find a suitable fullscreen resolution.");
+	}
+}
 
 static int CDECL compare_res(const void *pa, const void *pb)
 {