X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.c;h=2da07fd22d68ad675c811f1980fb49439ba413a2;hb=1c03d229073e56dda9e5856db5adaae51576a3bb;hp=55c4f97e8ed8ca3fb9ab6dd566626ca1f917ec73;hpb=6a2d6f12088f0352f67165564871c56a92c37a2f;p=xboard.git diff --git a/evalgraph.c b/evalgraph.c index 55c4f97..2da07fd 100644 --- a/evalgraph.c +++ b/evalgraph.c @@ -5,7 +5,7 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancments Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Enhancments Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * @@ -102,7 +102,7 @@ MakeEvalTitle (char *title) if( depth <=0 ) return title; if( currCurrent & 1 ) score = -score; /* Flip score for black */ - snprintf(buf, MSG_SIZ, "%s {%d: %s%.2f/%-2d %d}", title, currCurrent/2+1, + 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; @@ -152,7 +152,7 @@ static void DrawAxis () { int cy = nHeightPB / 2, space = nHeightPB/(6 + appData.zoom); - + DrawAxisSegmentHoriz( +5, TRUE ); DrawAxisSegmentHoriz( +3, space >= 20 ); DrawAxisSegmentHoriz( +1, space >= 20 && space*appData.zoom >= 40 ); @@ -245,7 +245,7 @@ DrawHistogramAsDiagram (int cy, int paint_width, int hist_count) /* 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;