From: H.G. Muller Date: Tue, 19 Feb 2013 18:14:49 +0000 (+0100) Subject: Limit debug print to debug mode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7b9a24f787397e274c8d9784b58c5023c12b35c6;p=xboard.git Limit debug print to debug mode --- diff --git a/gtk/xoptions.c b/gtk/xoptions.c index fae7d9f..0f90d6e 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -1119,7 +1119,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent // if(n > 50) width = 4; else if(n>24) width = 2; else width = 1; width = n / 20 + 1; height = n / width + 1; -printf("n=%d, h=%d, w=%d\n",n,height,width); +if(appData.debugMode) printf("n=%d, h=%d, w=%d\n",n,height,width); // if(n && (currentOption[n-1].type == Button || currentOption[n-1].type == SaveButton)) currentOption[n].min = SAME_ROW; // OK on same line currentOption[n].type = EndMark; currentOption[n].target = NULL; // delimit list by callback-less end mark }