X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=evalgraph.c;h=55c4f97e8ed8ca3fb9ab6dd566626ca1f917ec73;hb=4bfad947161d93ce1b566093211bd05f368bdffe;hp=7a181517ab3ca21ea9f4c2ca877f12d7c2ada996;hpb=4e062d14429ed3a3a251c971690bade4c8cba946;p=xboard.git diff --git a/evalgraph.c b/evalgraph.c index 7a18151..55c4f97 100644 --- a/evalgraph.c +++ b/evalgraph.c @@ -102,7 +102,8 @@ MakeEvalTitle (char *title) 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; } @@ -119,8 +120,8 @@ GetValueY (int value) { 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)); }