} else moveCount = 6;
}
}
-#if 1
- if (appData.debugMode) { int i;
- fprintf(debugFP, "repeat test fmm=%d bmm=%d ep=%d, reps=%d\n",
- forwardMostMove, backwardMostMove, epStatus[backwardMostMove],
- appData.drawRepeats);
- for( i=forwardMostMove; i>=backwardMostMove; i-- )
- fprintf(debugFP, "%d ep=%d\n", i, epStatus[i]);
+
+ if (appData.debugMode) { int i;
+ fprintf(debugFP, "repeat test fmm=%d bmm=%d ep=%d, reps=%d\n",
+ forwardMostMove, backwardMostMove, epStatus[backwardMostMove],
+ appData.drawRepeats);
+ for( i=forwardMostMove; i>=backwardMostMove; i-- )
+ fprintf(debugFP, "%d ep=%d\n", i, epStatus[i]);
+
+ }
- }
-#endif
/* Check for rep-draws */
count = 0;
for(k = forwardMostMove-2;
/* [HGM] add time */
char buf[MSG_SIZ]; int seconds = 0;
-#if 1
if(i >= backwardMostMove) {
if(WhiteOnMove(i))
seconds = timeRemaining[0][i] - timeRemaining[0][i+1]
+ GetTimeQuota(i/2) / (1000*WhitePlayer()->other->timeOdds);
}
seconds = (seconds+50)/100; // deci-seconds, rounded to nearest
-#else
- seconds = (pvInfoList[i].time + 5)/10; // [HGM] PVtime: use engine time
-#endif
if( seconds <= 0) buf[0] = 0; else
if( seconds < 30 ) sprintf(buf, " %3.1f%c", seconds/10., 0); else {
GetDIBits(tmphdc,bufferBitmap,0,b.bmHeight,pData,(BITMAPINFO*)&bih,DIB_RGB_COLORS);\r
// fprintf(diagFile, "%8x\n", (int) pData);\r
\r
-#if 1\r
wb = b.bmWidthBytes;\r
// count colors\r
for(i=0; i<wb*(b.bmHeight - boardRect.top + OUTER_MARGIN)>>2; i++) {\r
// write bitmap data\r
for(i=0; i<wb*(b.bmHeight - boardRect.top + OUTER_MARGIN); i++) \r
fputc(pData[i], diagFile);\r
-#endif\r
}\r
}\r
\r
wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
SetWindowPlacement(hDlg, &wp);\r
}\r
-#if 1\r
+\r
// [HGM] Chessknight's change 2004-07-13\r
else { /* Determine Defaults */\r
WINDOWPLACEMENT wp;\r
wp.rcNormalPosition.bottom = wpConsole.y + wpConsole.height;\r
SetWindowPlacement(hDlg, &wp);\r
}\r
-#endif\r
+\r
return FALSE;\r
\r
case WM_SETFOCUS:\r
}
-#if 1
/* Find empty space inside vbox form widget and redistribute it amongst
the list widgets inside it. */
/* This version sort of works */
XtSetArg(args[j], XtNwidth, w); j++;
XtSetValues(hist->mvb, args, j);
}
-#else
-/* Find empty space inside vbox form widget and redistribute it amongst
- the list widgets inside it. */
-/* This version doesn't work */
-void
-HistoryFill()
-{
- Arg args[16];
- Dimension fw, niw, wiw, biw, nbw, wbw, bbw;
- int j, nl, wl, bl, fdd;
- long extra;
-
- j = 0;
- XtSetArg(args[j], XtNwidth, &fw); j++;
- XtSetArg(args[j], XtNdefaultDistance, &fdd); j++;
- XtGetValues(hist->vbox, args, j);
-
- j = 0;
- XtSetArg(args[j], XtNlongest, &nl); j++;
- XtSetArg(args[j], XtNinternalWidth, &niw); j++;
- XtSetArg(args[j], XtNborderWidth, &nbw); j++;
- XtGetValues(hist->mvn, args, j);
-
- j = 0;
- XtSetArg(args[j], XtNlongest, &wl); j++;
- XtSetArg(args[j], XtNinternalWidth, &wiw); j++;
- XtSetArg(args[j], XtNborderWidth, &wbw); j++;
- XtGetValues(hist->mvw, args, j);
-
- j = 0;
- XtSetArg(args[j], XtNlongest, &bl); j++;
- XtSetArg(args[j], XtNinternalWidth, &biw); j++;
- XtSetArg(args[j], XtNborderWidth, &bbw); j++;
- XtGetValues(hist->mvb, args, j);
-
- extra = fw - 4*fdd -
- nl - 1 - 2*niw - 2*nbw - wl - 2*wiw - 2*wbw - bl - 2*biw - 2*bbw;
- if (extra < 0) extra = 0;
-
- j = 0;
- XtSetArg(args[j], XtNwidth, nl + 1 + 2*niw); j++;
- XtSetValues(hist->mvn, args, j);
-
- j = 0;
- XtSetArg(args[j], XtNwidth, wl + 2*wiw + extra/2); j++;
- XtSetValues(hist->mvw, args, j);
-
- j = 0;
- XtSetArg(args[j], XtNwidth, bl + 2*biw + extra/2); j++;
- XtSetValues(hist->mvb, args, j);
-}
-#endif
void HistorySet(char movelist[][2*MOVE_LEN],int first,int last,int current){
int i,b,m;