From: H.G. Muller Date: Sat, 14 Apr 2012 21:21:56 +0000 (+0200) Subject: Fix Eval Graph scale in drop games X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6a2d6f12088f0352f67165564871c56a92c37a2f;p=xboard.git Fix Eval Graph scale in drop games --- diff --git a/evalgraph.c b/evalgraph.c index 9c26897..55c4f97 100644 --- a/evalgraph.c +++ b/evalgraph.c @@ -120,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)); }