X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwsettings.c;h=0c92fbc42a54ab9cfef17840c1741cbae462a6a4;hb=36aefa2380480aa22c30c0a8c02a02fb961d600f;hp=43fcd069a554d9cb9eff1750e4721f654ccf709e;hpb=71c3de687d33523d83dec50208b0e44815fd7d20;p=xboard.git diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 43fcd06..0c92fbc 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -12,6 +12,7 @@ #include "config.h" #include +#include #include #include #include "common.h" @@ -33,7 +34,7 @@ int breaks[MAX_OPTIONS]; int checks, combos, buttons, layout, groups; char title[MSG_SIZ]; char *engineName, *engineDir, *engineChoice, *engineLine, *nickName, *params; -Boolean isUCI, hasBook, storeVariant, v1, addToList; +Boolean isUCI, hasBook, storeVariant, v1, addToList, useNick, isUCCI; extern Option installOptions[], matchOptions[]; char *engineNr[] = { N_("First"), N_("Second"), NULL }; char *engineList[1000] = {" "}, *engineMnemonic[1000] = {""}; @@ -42,6 +43,7 @@ ChessProgramState *activeCps; Option *activeList; void InstallOK P((void)); typedef void ButtonCallback(HWND h); +ButtonCallback *comboCallback; void PrintOpt(int i, int right, Option *optionList) @@ -160,6 +162,10 @@ LayoutOptions(int firstOption, int endOption, char *groupName, Option *optionLis breaks[layout/2] = lastType == Button ? 0 : 100; layoutList[layout++] = -1; layoutList[layout++] = nextOption - 1; + for(i=optionList[nextOption-1].min; i>0; i--) { // extra high text edit + layoutList[layout++] = -1; + layoutList[layout++] = -1; + } } else if(nextType == Spin) { // A spin will go in the next available position (right to left!). If it had to be prefixed with // a check or combo, this next position must be to the right, and the prefix goes left to it. @@ -320,8 +326,8 @@ GetOptionValues(HWND hDlg, ChessProgramState *cps, Option *optionList) // read out all controls, and if value is altered, remember it and send it to the engine { HANDLE hwndCombo; - int i, k, new=0, changed=0; - char **choices, newText[MSG_SIZ], buf[MSG_SIZ]; + int i, k, new=0, changed=0, len; + char **choices, newText[MSG_SIZ], buf[MSG_SIZ], *text; BOOL success; for(i=0; i