From adc8143af1cb983c0c6064533c462882c9cc37dc Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 10 Aug 2010 14:24:11 +0200 Subject: Fix colour scale (negative values go at the bottom of the scale) --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render.c') 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; -- cgit v1.2.3