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). --- flam3.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'flam3.c') diff --git a/flam3.c b/flam3.c index c4464ed..694868f 100644 --- a/flam3.c +++ b/flam3.c @@ -17,8 +17,9 @@ */ #include "private.h" +#include "rect.h" #include "img.h" -#include "config.h" +#include "build/config.h" #include "variations.h" #include "interpolation.h" #include "parser.h" @@ -3164,11 +3165,11 @@ int flam3_estimate_bounding_box(flam3_genome *cp, double eps, int nsamples, } int flam3_render(flam3_frame *spec, void *out, - int field, int nchan, int trans, stat_struct *stats) { + int field, stat_struct *stats) { int retval; - retval = render_rectangle (spec, out, field, nchan, trans, stats); + retval = render_rectangle (spec, out, field, stats); return(retval); } -- cgit v1.2.3