From: Steinar H. Gunderson Date: Sat, 18 Feb 2012 00:26:34 +0000 (+0100) Subject: Add a fullscreen define. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=342ff9578b148017e71771a282ee7c988e4a99e6 Add a fullscreen define. --- diff --git a/bigscreen/ccbs_bigscreen.cpp b/bigscreen/ccbs_bigscreen.cpp index 025d44b..fa2fefd 100644 --- a/bigscreen/ccbs_bigscreen.cpp +++ b/bigscreen/ccbs_bigscreen.cpp @@ -104,7 +104,11 @@ void main_loop(pqxx::connection &conn) int main(int argc, char **argv) { SDL_Init(SDL_INIT_VIDEO); +#if USE_FULLSCREEN screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32, SDL_DOUBLEBUF | SDL_FULLSCREEN); +#else + screen = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32, SDL_DOUBLEBUF); +#endif if (screen == NULL) { fprintf(stderr, "Video initialization failed: %s\n", SDL_GetError()); exit(1); diff --git a/bigscreen/resolution.h b/bigscreen/resolution.h index 20125eb..e58e117 100644 --- a/bigscreen/resolution.h +++ b/bigscreen/resolution.h @@ -5,6 +5,8 @@ #define SCREEN_HEIGHT 480 #define SCREEN_LCD 0 +#define USE_FULLSCREEN 1 + /* * This is used in the screens, mostly for historical reasons (they were * first hard-coded to 800x600, and changing them to be resolution-independent