diff options
author | Thomas White <taw@physics.org> | 2010-08-10 14:24:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:55 +0100 |
commit | adc8143af1cb983c0c6064533c462882c9cc37dc (patch) | |
tree | 8fc8ba4c1a48ff7e50b11e96c4cddb6da38d4d3c /src/render.c | |
parent | ebe34e4bb8b246541e39e5ffbeb570e47cf07131 (diff) |
Fix colour scale (negative values go at the bottom of the scale)
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c index 7f793797..3d8c0521 100644 --- a/src/render.c +++ b/src/render.c @@ -115,7 +115,7 @@ static void render_rgb(float val, float max, float *rp, float *gp, float *bp) if ( (val < 0.0) ) { s = 0; - p = 1.0; + p = 0; } if ( (val > max) ) { s = 6; |