From: H.G. Muller Date: Sun, 23 Aug 2009 00:47:44 +0000 (-0700) Subject: A small cosmetic change in the size of buttons inside a groupbox of the Engine-Setup... X-Git-Tag: v4.4.0.beta2~19 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3512e2a362ede1907c75f89e3d6f5945414b46a5;p=xboard.git A small cosmetic change in the size of buttons inside a groupbox of the Engine-Setup dialog. --- diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 0a25f9b..a1a6142 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -143,7 +143,7 @@ LayoutOptions(int firstOption, int endOption, char *groupName, Option *optionLis } } -char *p +char * EndMatch(char *s1, char *s2) { char *p, *q; @@ -183,11 +183,13 @@ DesignOptionDialog(ChessProgramState *cps) LayoutOptions(k, k+groupSize, buf, cps->option); // flush the group boxList[groups++] = layout; // group end in odd entries k = n = k + groupSize; +#if 0 } else { // try to recognize "two-column groups" based on option suffix int j = 1; while((p = EndMatch(cps->option[k].name, EndMatch(cps->option[k+2*j].name)) && - (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++ + (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++; +#endif } else k += groupSize; // small groups are grouped with the solitary options } if(n != k) LayoutOptions(n, k, "", cps->option); // flush remaining solitary options @@ -584,7 +586,8 @@ void AddOption(int x, int y, Control type, int i) AddControl(x+95, y-1, 50, 500, 0x0085, CBS_AUTOHSCROLL | CBS_DROPDOWN | WS_VISIBLE | WS_CHILD | WS_TABSTOP, i+1); break; case Button: - AddControl(x, y, 40, 15, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i); + case SaveButton: + AddControl(x-2, y, 65, 13, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i); break; }