summaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2015-02-15 17:27:22 +0100
committerLars-Dominik Braun <lars@6xq.net>2015-05-02 21:36:45 +0200
commitde0a8d8ff492fe1ede5ae2b3bad3d3bf659934d1 (patch)
treee90a20142ee0c1206480c04a69761bb5c2f38879 /rect.c
parentb1dc710474fd86eb3d5ff2a51edcbfcaf0c7301c (diff)
downloadpucket-de0a8d8ff492fe1ede5ae2b3bad3d3bf659934d1.tar.gz
pucket-de0a8d8ff492fe1ede5ae2b3bad3d3bf659934d1.tar.bz2
pucket-de0a8d8ff492fe1ede5ae2b3bad3d3bf659934d1.zip
Remove all uses of getenv
Not much functionality lost here. Move on.
Diffstat (limited to 'rect.c')
-rw-r--r--rect.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/rect.c b/rect.c
index b86e540..f06e382 100644
--- a/rect.c
+++ b/rect.c
@@ -287,7 +287,6 @@ int render_rectangle(flam3_frame *spec, void *out,
int thi;
time_t tstart,tend;
double sumfilt;
- char *ai;
int cmap_size;
/* Per-render progress timers */
@@ -304,7 +303,7 @@ int render_rectangle(flam3_frame *spec, void *out,
stats->num_iters = 0;
/* correct for apophysis's use of 255 colors in the palette rather than all 256 */
- cmap_size = 256 - argi("apo_palette",0);
+ cmap_size = 256;
memset(&cp,0, sizeof(flam3_genome));
@@ -818,20 +817,6 @@ int render_rectangle(flam3_frame *spec, void *out,
free(fth);
clear_cp(&cp,0);
- if (getenv("insert_palette")) {
- int ph = 100;
- if (ph >= image_height) ph = image_height;
- /* insert the palette into the image */
- for (j = 0; j < ph; j++) {
- for (i = 0; i < image_width; i++) {
- unsigned char *p = (unsigned char *)out + nchan * (i + j * out_width);
- p[0] = (unsigned char)dmap[i * 256 / image_width].color[0];
- p[1] = (unsigned char)dmap[i * 256 / image_width].color[1];
- p[2] = (unsigned char)dmap[i * 256 / image_width].color[2];
- }
- }
- }
-
tend = time(NULL);
stats->render_seconds = (int)(tend-tstart);