]> git.sesse.net Git - ccbs/blobdiff - bigscreen/ccbs_bigscreen.cpp
Disable cursor in fullscreen mode.
[ccbs] / bigscreen / ccbs_bigscreen.cpp
index 025d44bf6e435da5f4d116b12b712a9e753581d0..d09b1c4d36f1fae35d363aa0fe7bd01ae1ef34aa 100644 (file)
@@ -104,7 +104,12 @@ 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);
+       SDL_ShowCursor(SDL_DISABLE);
+#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);