projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5b68c50
)
Fix Eval Graph scale in drop games
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 14 Apr 2012 21:21:56 +0000 (23:21 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 14 Apr 2012 21:27:54 +0000 (23:27 +0200)
evalgraph.c
patch
|
blob
|
history
diff --git
a/evalgraph.c
b/evalgraph.c
index
9c26897
..
55c4f97
100644
(file)
--- 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));
}