// back-end
static void
-DrawLine (int x1, int y1, int x2, int y2, int penType)
+DrawLine (int x1, int y1, int x2, int y2, enum PEN penType)
{
DrawSegment( x1, y1, NULL, NULL, PEN_NONE );
DrawSegment( x2, y2, NULL, NULL, penType );
// back-end
static void
-DrawLineEx (int x1, int y1, int x2, int y2, int penType)
+DrawLineEx (int x1, int y1, int x2, int y2, enum PEN penType)
{
int savX, savY;
DrawSegment( x1, y1, &savX, &savY, PEN_NONE );
if( depth <=0 ) return title;
if( currCurrent & 1 ) score = -score; /* Flip score for black */
- snprintf(buf, MSG_SIZ, "%s {%s%.2f/%-2d %d}", title, score>0 ? "+" : " ", score/100., depth, (currPvInfo[currCurrent].time+50)/100);
+ snprintf(buf, MSG_SIZ, "%s {%d: %s%.2f/%-2d %d}", title, currCurrent/2+1,
+ score>0 ? "+" : " ", score/100., depth, (currPvInfo[currCurrent].time+50)/100);
return buf;
}
{
if( value < -range*700 ) value = -range*700;
if( value > +range*700 ) value = +range*700;
- if(value > 100*range) value += appData.zoom * 100 - 100*range; else
- if(value < -100*range) value -= appData.zoom * 100 - 100*range; else
+ if(value > 100*range) value += (appData.zoom - 1)*100*range; else
+ if(value < -100*range) value -= (appData.zoom - 1)*100*range; else
value *= appData.zoom;
return (nHeightPB / 2) - (int)(value * (nHeightPB - 2*MarginH) / ((1200. + 200.*appData.zoom)*range));
}
/* Extend line up to current point */
if( currPvInfo[index].depth > 0 ) {
- DrawSegment((int) x, GetValueY( GetPvScore(index) ), NULL, NULL, PEN_BOLD + side );
+ DrawSegment((int) x, GetValueY( GetPvScore(index) ), NULL, NULL, (side==0 ? PEN_BOLDWHITE: PEN_BOLDBLACK) );
}
index += 2;