A small cosmetic change in the size of buttons inside a groupbox of the Engine-Setup...
authorH.G. Muller <h.g.muller@hccnet.nl>
Sun, 23 Aug 2009 00:47:44 +0000 (17:47 -0700)
committerArun Persaud <arun@nubati.net>
Sun, 23 Aug 2009 00:47:44 +0000 (17:47 -0700)
winboard/wsettings.c

index 0a25f9b..a1a6142 100644 (file)
@@ -143,7 +143,7 @@ LayoutOptions(int firstOption, int endOption, char *groupName, Option *optionLis
     }\r
 }\r
 \r
-char *p\r
+char *\r
 EndMatch(char *s1, char *s2)\r
 {\r
        char *p, *q;\r
@@ -183,11 +183,13 @@ DesignOptionDialog(ChessProgramState *cps)
                LayoutOptions(k, k+groupSize, buf, cps->option); // flush the group\r
                boxList[groups++] = layout; // group end in odd entries\r
                k = n = k + groupSize;\r
+#if 0\r
        } else {\r
                // try to recognize "two-column groups" based on option suffix\r
                int j = 1;\r
                while((p = EndMatch(cps->option[k].name, EndMatch(cps->option[k+2*j].name)) &&\r
-                     (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++\r
+                     (q = EndMatch(cps->option[k+1].name, EndMatch(cps->option[k+2*j+1].name)) ) j++;\r
+#endif\r
        } else k += groupSize; // small groups are grouped with the solitary options\r
     }\r
     if(n != k) LayoutOptions(n, k, "", cps->option); // flush remaining solitary options\r
@@ -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);\r
            break;\r
        case Button:\r
-           AddControl(x, y, 40, 15, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i);\r
+       case SaveButton:\r
+           AddControl(x-2, y, 65, 13, 0x0080, BS_PUSHBUTTON | WS_VISIBLE | WS_CHILD, i);\r
            break;\r
     }\r
     \r