diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-16 17:35:10 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:45 +0200 |
commit | 6123a81aecc4e3cd6c47c908fb7e9010d3d64798 (patch) | |
tree | c5db975b3789fd984fc51b7c3a426e7f56ff68bb /flam3.c | |
parent | 215dcd3d466303b39f8912602be039a7a3aefe5c (diff) | |
download | pucket-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 'flam3.c')
-rw-r--r-- | flam3.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); } |