diff --git a/platform_sdl.h b/platform_sdl.h index 0c26842..bc1215c 100644 --- a/platform_sdl.h +++ b/platform_sdl.h @@ -66,6 +66,10 @@ int main() SDL_Surface *screenSurface = SDL_GetWindowSurface(window); +#if SFG_FULLSCREEN + SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP); +#endif + sdlKeyboardState = SDL_GetKeyboardState(NULL); SFG_init(); diff --git a/settings.h b/settings.h index 6c6b049..2943a03 100644 --- a/settings.h +++ b/settings.h @@ -5,6 +5,11 @@ #define SFG_RESOLUTION_X 1024 #define SFG_RESOLUTION_Y 768 +/** + Hint as to whether run in fullscreen, if the platform allows it. +*/ +#define SFG_FULLSCREEN 0 + /** Whether shadows (fog) should be dithered, i.e. more smooth (needs a bit more performance).