#include "image.h"
+#include "imagei.h"
#include <stdlib.h>
#include <math.h>
int x, y;
i_fcolor *line = mymalloc(sizeof(i_fcolor) * im->xsize);
i_fcolor *work = NULL;
- int ch;
+
i_fountain_seg *my_segs;
i_fill_combine_f combine_func = NULL;
i_fill_combinef_f combinef_func = NULL;
for (x = 0; x < im->xsize; ++x) {
i_fcolor c;
int got_one;
- double v;
if (super_sample == i_fts_none)
got_one = fount_getat(&c, x, y, &state);
else
int i, j;
i_fountain_seg *my_segs = mymalloc(sizeof(i_fountain_seg) * count);
/*int have_alpha = im->channels == 2 || im->channels == 4;*/
- int ch;
memset(state, 0, sizeof(*state));
/* we keep a local copy that we can adjust for speed */
}
state->ffunc = fount_funcs[type];
if (super_sample < 0
- || super_sample >= (sizeof(fount_ssamples)/sizeof(*fount_ssamples))) {
+ || super_sample >= (int)(sizeof(fount_ssamples)/sizeof(*fount_ssamples))) {
super_sample = 0;
}
state->ssample_data = NULL;
while (width--) {
i_fcolor c;
int got_one;
- double v;
+
if (f->state.ssfunc)
got_one = f->state.ssfunc(&c, x, y, &f->state);
else
while (width--) {
i_fcolor c;
int got_one;
- double v;
+
if (f->state.ssfunc)
got_one = f->state.ssfunc(&c, x, y, &f->state);
else