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);