aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/colscale.c4
-rw-r--r--libcrystfel/src/colscale.h4
-rw-r--r--src/render_hkl.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/libcrystfel/src/colscale.c b/libcrystfel/src/colscale.c
index d541b384..34cd36d8 100644
--- a/libcrystfel/src/colscale.c
+++ b/libcrystfel/src/colscale.c
@@ -218,8 +218,8 @@ static void render_invmono(double val, double max,
}
-void render_scale(double val, double max, int scale,
- double *rp, double *gp, double *bp)
+void colscale_lookup(double val, double max, int scale,
+ double *rp, double *gp, double *bp)
{
switch ( scale ) {
diff --git a/libcrystfel/src/colscale.h b/libcrystfel/src/colscale.h
index 41e8c9e8..7fec2154 100644
--- a/libcrystfel/src/colscale.h
+++ b/libcrystfel/src/colscale.h
@@ -51,8 +51,8 @@ extern "C" {
#endif
/* Colour scale lookup */
-extern void render_scale(double val, double max, int scale,
- double *rp, double *gp, double *bp);
+extern void colscale_lookup(double val, double max, int scale,
+ double *rp, double *gp, double *bp);
#ifdef __cplusplus
diff --git a/src/render_hkl.c b/src/render_hkl.c
index 715bd73c..f2ffa211 100644
--- a/src/render_hkl.c
+++ b/src/render_hkl.c
@@ -332,8 +332,8 @@ static void draw_circles(double xh, double xk, double xl,
((double)cy)+v*scale,
radius, 0.0, 2.0*M_PI);
- render_scale(val, max_val/boost, colscale,
- &r, &g, &b);
+ colscale_lookup(val, max_val/boost, colscale,
+ &r, &g, &b);
cairo_set_source_rgb(dctx, r, g, b);
cairo_fill(dctx);
@@ -658,7 +658,7 @@ static int render_key(int colscale, double scale_top)
val = v/ht;
}
- render_scale(val, top, colscale, &r, &g, &b);
+ colscale_lookup(val, top, colscale, &r, &g, &b);
cairo_set_source_rgb(dctx, r, g, b);
cairo_stroke_preserve(dctx);