]> git.sesse.net Git - ccbs/commitdiff
Add a fullscreen define.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 00:26:34 +0000 (01:26 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 18 Feb 2012 00:26:34 +0000 (01:26 +0100)
bigscreen/ccbs_bigscreen.cpp
bigscreen/resolution.h

index 025d44bf6e435da5f4d116b12b712a9e753581d0..fa2fefdc6585c6c0fa4121cfee68c0aee714d590 100644 (file)
@@ -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);
index 20125ebf3b57c95dc9f9cdf544f6f4a03f1adf87..e58e1175504acfe6504fa5758d776d0211127861 100644 (file)
@@ -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