# HG changeset patch # User Michiel Broek # Date 1547932062 -3600 # Node ID 362c4700937e8fb8b89d5880c242362410bea753 # Parent 479878d528f2b1a1beb70ae3425297b556c8aacc Removed some debug code diff -r 479878d528f2 -r 362c4700937e brewpanel/brewpanel.c --- a/brewpanel/brewpanel.c Sat Jan 19 20:31:50 2019 +0100 +++ b/brewpanel/brewpanel.c Sat Jan 19 22:07:42 2019 +0100 @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (C) 2015 + * Copyright (C) 2015-2019 * * Michiel Broek * @@ -104,8 +104,6 @@ openlog("brewpanel", LOG_PID|LOG_CONS|LOG_NOWAIT, LOG_USER); syslog(LOG_NOTICE, "mbsePi-apps brewpanel v%s starting", VERSION); - if (debug) - fprintf(stdout, "mbsePi-apps brewpanel v%s starting\n", VERSION); /* * Catch all the signals we can, and ignore the rest. Note that SIGKILL can't be ignored @@ -174,7 +172,6 @@ int server(void) { - int max_x = 0, max_y = 0; SDL_Rect **modes; char title[81]; @@ -191,18 +188,12 @@ /* Check if our resolution is restricted */ if (modes == (SDL_Rect **)-1) { syslog(LOG_NOTICE, "SDL all resolutions available.\n"); - } else { - max_x = modes[0]->w; - max_y = modes[0]->h; } } PAN_x = 384; PAN_y = 480; - if (debug) - fprintf(stdout, "Screen max X*Y: %d*%d panel X*Y: %d*%d\n", max_x, max_y, PAN_x, PAN_y); - PAN_surface = SDL_SetVideoMode( PAN_x, PAN_y, 32, SDL_SWSURFACE|SDL_DOUBLEBUF ); if (PAN_surface == NULL) { syslog(LOG_NOTICE, "Could not create main surface: %s", SDL_GetError());