From 4ca34035f552178f31efddb595206516856b63ca Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 22 Mar 2008 04:10:41 +0000 Subject: [PATCH] fullscreen/cfg fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1719 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/main.cpp b/source/src/main.cpp index abd03a48..da1b0dea 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -70,6 +70,7 @@ VARF(fullscreen, 0, 0, 1, initwarning()); #else void setfullscreen(bool enable) { + if(!screen) return; if(enable == !(screen->flags&SDL_FULLSCREEN)) { SDL_WM_ToggleFullScreen(screen);