From 342ff9578b148017e71771a282ee7c988e4a99e6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 18 Feb 2012 01:26:34 +0100 Subject: [PATCH] Add a fullscreen define. --- bigscreen/ccbs_bigscreen.cpp | 4 ++++ bigscreen/resolution.h | 2 ++ 2 files changed, 6 insertions(+) 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 -- 2.39.2