aboutsummaryrefslogtreecommitdiff
path: root/src/render.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-25 18:40:56 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commit0de53f22863af2bb3c8db3d1cf5e015f0a9b9f87 (patch)
treefa8c690542f8de0932183c89c43d6aba8f096f8a /src/render.h
parentdad9cc7fe622e2b55f5294892d9c95a0c580b3be (diff)
render_hkl: Multiple improvements
Diffstat (limited to 'src/render.h')
-rw-r--r--src/render.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/render.h b/src/render.h
index e8017de8..fbfbbdb2 100644
--- a/src/render.h
+++ b/src/render.h
@@ -25,12 +25,13 @@
enum {
SCALE_COLOUR,
SCALE_MONO,
- SCALE_INVMONO
+ SCALE_INVMONO,
+ SCALE_RATIO
};
/* Colour scale lookup */
-extern void render_scale(float val, float max, int scale,
- float *rp, float *gp, float *bp);
+extern void render_scale(double val, double max, int scale,
+ double *rp, double *gp, double *bp);
#ifdef HAVE_GTK
@@ -38,8 +39,8 @@ extern void render_scale(float val, float max, int scale,
#include <gdk-pixbuf/gdk-pixbuf.h>
extern GdkPixbuf **render_panels(struct image *image,
- int binning, int scale, double boost,
- int *n_pixbufs);
+ int binning, int scale, double boost,
+ int *n_pixbufs);
extern GdkPixbuf *render_get_colour_scale(size_t w, size_t h, int scale);