summaryrefslogtreecommitdiff
path: root/palettes.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-16 17:35:10 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commit6123a81aecc4e3cd6c47c908fb7e9010d3d64798 (patch)
treec5db975b3789fd984fc51b7c3a426e7f56ff68bb /palettes.c
parent215dcd3d466303b39f8912602be039a7a3aefe5c (diff)
downloadpucket-6123a81aecc4e3cd6c47c908fb7e9010d3d64798.tar.gz
pucket-6123a81aecc4e3cd6c47c908fb7e9010d3d64798.tar.bz2
pucket-6123a81aecc4e3cd6c47c908fb7e9010d3d64798.zip
Vectorize color clipping
Replaces redundant code with one function. Oddly this fixes rendering with earlyclip – not sure why. Drop transparency and channel settings (always transparent, always four channels).
Diffstat (limited to 'palettes.c')
-rw-r--r--palettes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/palettes.c b/palettes.c
index 9251e93..53e99c1 100644
--- a/palettes.c
+++ b/palettes.c
@@ -386,7 +386,7 @@ static double try_colors(flam3_genome *g, int color_resolution) {
f.sub_batch_size = 10000;
image = (unsigned char *) calloc(g->width * g->height, 3);
- if (flam3_render(&f, image, flam3_field_both, 3, 0, &stats)) {
+ if (flam3_render(&f, image, flam3_field_both, &stats)) {
fprintf(stderr,"Error rendering test image for trycolors. Aborting.\n");
return(-1);
}