X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=c830d4ee972020f724c530520f26d1a6e426cf8c;hb=f0c3d1451610821ae9599c97a779dfebf538611a;hp=52fb5156abf849c668cb4a2d771fa8d5e1958207;hpb=ad3790c613d301fb6f234e78cb63a5a743bde0d6;p=xboard.git diff --git a/backend.c b/backend.c index 52fb515..c830d4e 100644 --- a/backend.c +++ b/backend.c @@ -2511,6 +2511,14 @@ PlotSeekAd (int i) } void +PlotSingleSeekAd (int i) +{ + DrawSeekOpen(); + PlotSeekAd(i); + DrawSeekClose(); +} + +void AddAd (char *handle, char *rating, int base, int inc, char rated, char *type, int nr, Boolean plot) { char buf[MSG_SIZ], *ext = ""; @@ -2530,7 +2538,7 @@ AddAd (char *handle, char *rating, int base, int inc, char rated, char *type, i seekNrList[nrOfSeekAds] = nr; zList[nrOfSeekAds] = 0; seekAdList[nrOfSeekAds++] = StrSave(buf); - if(plot) PlotSeekAd(nrOfSeekAds-1); + if(plot) PlotSingleSeekAd(nrOfSeekAds-1); } } @@ -2594,6 +2602,7 @@ DrawSeekGraph () h = BOARD_HEIGHT * (squareSize + lineGap) + lineGap; w = BOARD_WIDTH * (squareSize + lineGap) + lineGap; + DrawSeekOpen(); DrawSeekBackground(0, 0, w, h); DrawSeekAxis(hMargin, h-1-vMargin, w-5, h-1-vMargin); DrawSeekAxis(hMargin, h-1-vMargin, hMargin, 5); @@ -2618,6 +2627,7 @@ DrawSeekGraph () } } for(i=0; i= 10 ? icsNames : firstChessProgramNames, command, mnemonic, "all"); for(i=1; mnemonic[i]; i++) if(!strcmp(s, mnemonic[i])) break; if(!mnemonic[i]) return 0; + if(n == 11) return 1; // just testing if there was a match snprintf(buf, MSG_SIZ, "-%s %s", n == 10 ? "icshost" : "fcp", command[i]); if(n == 1) SwapEngines(n); ParseArgsFromString(buf); @@ -13378,6 +13392,7 @@ PauseEvent () WhiteOnMove(forwardMostMove))) { StopClocks(); } + case AnalyzeMode: pausing = TRUE; ModeHighlight(); break;