diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-05-24 16:44:16 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-24 16:44:16 +0200 |
commit | d82c89132ad3a83c816edeb42049b88797ac1122 (patch) | |
tree | 73b35db625ac9ceeb0e79ae5b57f78a8fa4ea40a | |
parent | 5d68b4d6b6cea967ae015e3c011afb6c3e17bf5f (diff) | |
download | pucket-d82c89132ad3a83c816edeb42049b88797ac1122.tar.gz pucket-d82c89132ad3a83c816edeb42049b88797ac1122.tar.bz2 pucket-d82c89132ad3a83c816edeb42049b88797ac1122.zip |
Minor cleanup
-rw-r--r-- | flam3.c | 7 | ||||
-rw-r--r-- | rect.c | 3 |
2 files changed, 4 insertions, 6 deletions
@@ -185,10 +185,9 @@ bool iterator_step (iterator * const iter, double4 * const ret, randctx * const iter->p = q; if (genome->final_xform_enable == 1) { - if (genome->xform[genome->final_xform_index].opacity==1 || - rand_d01(rc)<genome->xform[genome->final_xform_index].opacity) { - apply_xform(&genome->xform[genome->final_xform_index], iter->p, - &q, rc); + const flam3_xform * const final = &genome->xform[genome->final_xform_index]; + if (final->opacity == 1 || rand_d01(rc) < final->opacity) { + apply_xform (final, iter->p, &q, rc); /* Keep the opacity from the original xform */ q = (double4) { q[0], q[1], q[2], iter->p[3] }; } @@ -136,8 +136,7 @@ static void iter_thread (flam3_genome * const input_genome, double4 interpcolor = color_palette_lookup (p[2], genome.palette_mode, &input_genome->palette); - const double logvis = p[3]; - interpcolor *= logvis; + interpcolor *= p[3]; bucket->data[ix] += interpcolor; } |