From c30c05aeeadd8caf0cd887fab0024bf894ae7d65 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 7 Jul 2010 14:59:30 +0200 Subject: render_hkl: Use colour scale if requested --- src/render_hkl.c | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) (limited to 'src/render_hkl.c') diff --git a/src/render_hkl.c b/src/render_hkl.c index de8e3021..60153652 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -29,6 +29,7 @@ #include "reflections.h" #include "povray.h" #include "symmetry.h" +#include "render.h" enum { WGHT_I, @@ -66,7 +67,7 @@ static void show_help(const char *s) #ifdef HAVE_CAIRO static void render_za(UnitCell *cell, double *ref, unsigned int *c, - double boost, const char *sym, int wght) + double boost, const char *sym, int wght, int colscale) { cairo_surface_t *surface; cairo_t *dctx; @@ -217,12 +218,11 @@ static void render_za(UnitCell *cell, double *ref, unsigned int *c, abort(); } - val = boost*val/max_val; - nequiv = num_equivs(h, k, 0, sym); for ( p=0; p