aboutsummaryrefslogtreecommitdiff
path: root/src/render_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-29 14:54:16 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commitcbfa9046eac9b34ba217408b6356a3a6268d8227 (patch)
tree2319e72ad8f97126117c1804d88a363a62a13a91 /src/render_hkl.c
parent6dfea8ddd0b7cb717fc120dc68edc42b0e1fbdd8 (diff)
render_scale -> colscale_lookup
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r--src/render_hkl.c6
1 files changed, 3 insertions, 3 deletions
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);