X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Freaders%2Fimage.c;h=a9f96e8363bee3be3a14144eab1d9d7292e5f93e;hb=6f78b0ef3998e959ce09c5ef11d46149756b682b;hp=7457a4e9c74f360c7be2c9b6c139508dff6cc416;hpb=6c8f037f0f76ce4b28b80a2133e4150d93012ef7;p=swftools.git diff --git a/lib/readers/image.c b/lib/readers/image.c index 7457a4e..a9f96e8 100644 --- a/lib/readers/image.c +++ b/lib/readers/image.c @@ -126,10 +126,10 @@ static gfxdocument_t*image_open(gfxsource_t*src, const char*filename) memset(i, 0, sizeof(image_doc_internal_t)); gfxcolor_t*data = 0; - int width = 0; - int height = 0; + unsigned width = 0; + unsigned height = 0; - if(!getPNG(filename, &width, &height, (unsigned char**)&data)) { + if(!png_load(filename, &width, &height, (unsigned char**)&data)) { if(!jpeg_load(filename, (unsigned char**)&data, &width, &height)) { msg(" Couldn't load image %s", filename); return 0;