aboutsummaryrefslogtreecommitdiff
path: root/src/povray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/povray.c')
-rw-r--r--src/povray.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/povray.c b/src/povray.c
index 8d0ec048..660f1c59 100644
--- a/src/povray.c
+++ b/src/povray.c
@@ -30,7 +30,8 @@
int povray_render_animation(UnitCell *cell, RefList *list, unsigned int nproc,
- const char *sym, int wght, double boost)
+ const char *sym, int wght, double boost,
+ double scale_top)
{
FILE *fh;
double asx, asy, asz;
@@ -201,6 +202,12 @@ int povray_render_animation(UnitCell *cell, RefList *list, unsigned int nproc,
}
max /= boost;
+ /* Use manual scale top if specified */
+ if ( scale_top > 0.0 ) {
+ max = scale_top;
+ }
+
+
for ( refl = first_refl(list, &iter);
refl != NULL;
refl = next_refl(refl, iter) ) {