mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2025-01-30 23:00:16 -05:00
Add fullscreen
This commit is contained in:
parent
fc235c9e52
commit
5dde1b357c
@ -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();
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user