From 72719468f58acca3237999c1f3888e0516054155 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 14 Jun 2010 17:22:35 -0700 Subject: hdfsee: Show colour scale properly in all cases --- src/render.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/render.c b/src/render.c index 70b76a86..efbbfcb9 100644 --- a/src/render.c +++ b/src/render.c @@ -308,7 +308,7 @@ GdkPixbuf *render_get_image(DisplayWindow *dw) w, h, w*3, render_free_data, NULL); } -GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int monochrome) +GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale) { guchar *data; size_t x, y; @@ -321,14 +321,26 @@ GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int monochrome) for ( y=0; y