From 301bc62adc12d738e37d9cfe7f9ea44578499ab3 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 31 Dec 2010 14:20:49 +0100 Subject: [PATCH] Fix fullscreen. --- config.h.def | 2 +- general.h | 1 + ssnes.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.h.def b/config.h.def index 36e32254f2..859daec4bb 100644 --- a/config.h.def +++ b/config.h.def @@ -53,7 +53,7 @@ static const float xscale = 3.0; // Real x res = 296 * xscale static const float yscale = 3.0; // Real y res = 224 * yscale // Fullscreen -static bool fullscreen = false; // To start in Fullscreen or not +#define START_FULLSCREEN false; // To start in Fullscreen or not static const unsigned fullscreen_x = 1280; static const unsigned fullscreen_y = 720; diff --git a/general.h b/general.h index b2e13bb542..50b071add8 100644 --- a/general.h +++ b/general.h @@ -33,5 +33,6 @@ extern bool verbose; extern SRC_STATE *source; +extern bool fullscreen; #endif diff --git a/ssnes.c b/ssnes.c index c19213a723..7ed812dd08 100644 --- a/ssnes.c +++ b/ssnes.c @@ -199,6 +199,7 @@ static void print_help(void) puts("\t-v/--verbose: Verbose logging"); } +bool fullscreen = START_FULLSCREEN; static FILE* rom_file = NULL; static char savefile_name_srm[256] = {0}; bool verbose = false;