mirror of https://gitlab.com/drummyfish/anarch.git
Add fullscreen
This commit is contained in:
parent
fc235c9e52
commit
5dde1b357c
|
@ -66,6 +66,10 @@ int main()
|
||||||
|
|
||||||
SDL_Surface *screenSurface = SDL_GetWindowSurface(window);
|
SDL_Surface *screenSurface = SDL_GetWindowSurface(window);
|
||||||
|
|
||||||
|
#if SFG_FULLSCREEN
|
||||||
|
SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP);
|
||||||
|
#endif
|
||||||
|
|
||||||
sdlKeyboardState = SDL_GetKeyboardState(NULL);
|
sdlKeyboardState = SDL_GetKeyboardState(NULL);
|
||||||
|
|
||||||
SFG_init();
|
SFG_init();
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
#define SFG_RESOLUTION_X 1024
|
#define SFG_RESOLUTION_X 1024
|
||||||
#define SFG_RESOLUTION_Y 768
|
#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
|
Whether shadows (fog) should be dithered, i.e. more smooth (needs a bit more
|
||||||
performance).
|
performance).
|
||||||
|
|
Loading…
Reference in New Issue