/* step 1: the bitmap */
SRECT r;
int imageID = id;
- int width, height;
+ unsigned width, height;
if(!strcmp(type,"jpeg")) {
#ifndef HAVE_JPEGLIB
warning("no jpeg support compiled in");
RGBA*data = 0;
swf_SetU16(tag, imageID);
- getPNG(filename, &width, &height, (unsigned char**)&data);
+ png_load(filename, &width, &height, (unsigned char**)&data);
if(!data) {
syntaxerror("Image \"%s\" not found, or contains errors", filename);