aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-08 12:00:35 +0200
committerThomas White <taw@physics.org>2015-05-08 12:00:35 +0200
commit613ce29a9d285e056085e3a76745733933b22cc0 (patch)
tree8de6e28072ac3b02482efb293c8cb8f62f95e188 /src
parent89199e9a97d6f7efbe473c7447374acc857adeca (diff)
geoptimiser: Use enum for colour scale choice
Diffstat (limited to 'src')
-rw-r--r--src/geoptimiser.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/geoptimiser.c b/src/geoptimiser.c
index 90875f54..b1d2b1ab 100644
--- a/src/geoptimiser.c
+++ b/src/geoptimiser.c
@@ -48,6 +48,7 @@
#include <crystal.h>
#include <image.h>
#include <utils.h>
+#include <render.h>
#include "hdfsee-render.h"
@@ -2129,7 +2130,7 @@ static int draw_detector(cairo_surface_t *surf, struct image *image,
cr = cairo_create(surf);
unpack_slab(image);
- pixbufs = render_panels(image, 1, 4, 1, &n_pixbufs);
+ pixbufs = render_panels(image, 1, SCALE_GEOPTIMISER, 1, &n_pixbufs);
/* Blank grey background */
cairo_rectangle(cr, 0.0, 0.0, rect.width, rect.height);
@@ -2224,7 +2225,7 @@ static int save_data_to_png(char *filename, struct detector *det,
draw_detector(surf, &im, rect);
- col_scale = render_get_colour_scale(20, rect.height, 4);
+ col_scale = render_get_colour_scale(20, rect.height, SCALE_GEOPTIMISER);
cr = cairo_create(surf);
cairo_identity_matrix(cr);