parent
42836e3de1
commit
f393a78080
|
@ -126,7 +126,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
char type[2];
|
||||
unsigned long size, offset, headSize, comp, imgsize, j, k, l;
|
||||
unsigned short tmpShort, planes, bitcount, ncols, skip;
|
||||
unsigned char tempchar, byte = 0, g, b, r;
|
||||
unsigned char byte = 0, g, b, r;
|
||||
unsigned long i, w, h;
|
||||
unsigned short x, y;
|
||||
DATA32 *ptr, *data_end;
|
||||
|
@ -806,7 +806,7 @@ save(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity)
|
|||
{
|
||||
FILE *f;
|
||||
Imlib_Color pixel_color;
|
||||
unsigned long i, j, pad, size;
|
||||
unsigned long i, j, pad;
|
||||
|
||||
if (!im->data)
|
||||
return 0;
|
||||
|
|
|
@ -268,7 +268,7 @@ int i;
|
|||
static void deplane(DATA32 *row, int w, ILBM *ilbm, unsigned char *plane[])
|
||||
{
|
||||
unsigned long l;
|
||||
int i, o, sl, x;
|
||||
int i, o, x;
|
||||
unsigned char bit, r, g, b, a, v, h, *pal;
|
||||
|
||||
pal = NULL;
|
||||
|
@ -395,7 +395,7 @@ unsigned char bit, r, g, b, a, v, h, *pal;
|
|||
char load(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity, char immediate_load)
|
||||
{
|
||||
char *env;
|
||||
int cancel, full, i, j, k, n, ok, y, z, gran, nexty, prevy;
|
||||
int cancel, full, i, n, ok, y, z, gran, nexty, prevy;
|
||||
unsigned char *plane[40];
|
||||
ILBM ilbm;
|
||||
|
||||
|
|
|
@ -321,8 +321,7 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
unsigned char *bufptr;
|
||||
DATA32 *dataptr;
|
||||
|
||||
int y, pl = 0;
|
||||
char pper = 0;
|
||||
int y;
|
||||
|
||||
/* allocate the destination buffer */
|
||||
im->data = malloc(im->w * im->h * sizeof(DATA32));
|
||||
|
@ -409,9 +408,6 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
}
|
||||
if (progress)
|
||||
{
|
||||
char per;
|
||||
int l;
|
||||
|
||||
progress(im, 100, 0, 0, im->w, im->h);
|
||||
} /* end for (each row) */
|
||||
}
|
||||
|
@ -519,9 +515,6 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
if (vinverted) tgaflip(im->data, im->w, im->h);
|
||||
if (progress)
|
||||
{
|
||||
char per;
|
||||
int l;
|
||||
|
||||
progress(im, 100, 0, 0, im->w, im->h);
|
||||
} /* end for (each row) */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue