From 6123a81aecc4e3cd6c47c908fb7e9010d3d64798 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 16 Feb 2015 17:35:10 +0100 Subject: Vectorize color clipping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- palettes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'palettes.c') 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); } -- cgit v1.2.3