Fullscreen by default for SDL

This commit is contained in:
Iwan Timmer 2015-08-26 15:30:52 +02:00
parent 6621bb73ff
commit cee58fa52c
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
#include <stdbool.h>
static bool done;
static int fullscreen_flags;
static int fullscreen_flags = SDL_WINDOW_FULLSCREEN;
SDL_Window *sdl_window;

View File

@ -55,7 +55,7 @@ static void sdl_cleanup() {
static int sdl_submit_decode_unit(PDECODE_UNIT decodeUnit) {
if (window == NULL) {
window = SDL_CreateWindow("Moonlight", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, screen_width, screen_height, SDL_WINDOW_OPENGL);
window = SDL_CreateWindow("Moonlight", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, screen_width, screen_height, SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN);
if(!window) {
fprintf(stderr, "SDL: could not create window - exiting\n");
exit(1);