X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwsettings.c;h=53d6b163b3ef7ec7af19c0f74e8eaf4248390552;hb=7930f136b8deed922091be0a99c799dd2d11b9c5;hp=5bbcc30655370d1c3bd3cc9b8e2851c2a7d00bc4;hpb=78faea4c21208a7219dc11180519b18f0444c5f7;p=xboard.git diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 5bbcc30..53d6b16 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -602,7 +602,7 @@ void AddOption(int x, int y, Control type, int i) void CreateDialogTemplate(int *layoutList, int nr, Option *optionList) { - int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = -1, k=0; + int i, ii, j, x=1, y=0, maxY=0, buttonRows, breakPoint = 1000, k=0; template.header.cdit = 0; template.header.cx = 307; @@ -762,7 +762,7 @@ char *tfName; int MatchOK() { - if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); + if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); else if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; } if(CreateTourney(tfName) && !matchMode) { // CreateTourney reloads original settings if file already existed @@ -772,6 +772,19 @@ int MatchOK() return matchMode || !appData.participants[0]; // if we failed to create and are not in playing, forbid popdown if there are participants } +void PseudoOK(HWND hDlg) +{ + void (*saveOK)(); + saveOK = okFunc; okFunc = 0; + GetOptionValues(hDlg, activeCps, activeList); + EndDialog( hDlg, 0 ); + comboCallback = NULL; activeCps = NULL; + + if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); else + if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book + if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; } +} + char *GetParticipants(HWND hDlg) { int len = GetWindowTextLength(GetDlgItem(hDlg, 2001+2*0)) + 1; @@ -844,6 +857,7 @@ Option tourneyOptions[] = { { 0, 0, 0, NULL, (void*) &TimeControlOptionsPopup, "", NULL, Button, N_("Time Control...") }, { 0, 0, 0, NULL, (void*) &UciOptionsPopup, "", NULL, Button, N_("Common Engine...") }, { 0, 0, 0, NULL, (void*) &Inspect, "", NULL, Button, N_("Clone Tourney") }, + { 0, 0, 0, NULL, (void*) &PseudoOK, "", NULL, Button, N_("Continue Later") }, { 0, 0, 0, NULL, (void*) &MatchOK, "", NULL, EndMark , "" } };