X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfximage.c;h=62b60c597a58b60e02d58f4ad43120a2a9f704af;hb=a40f2d767f06e1840995a95247584bd39fc2e98e;hp=3e6cfde069cd2ef648d10fe9bc4c4fa934ad2b22;hpb=8deae5c09c8cda6f48fb9b0113487567582e6376;p=swftools.git diff --git a/lib/gfximage.c b/lib/gfximage.c index 3e6cfde..62b60c5 100644 --- a/lib/gfximage.c +++ b/lib/gfximage.c @@ -254,9 +254,11 @@ gfximage_t* gfximage_rescale(gfximage_t*image, int newwidth, int newheight) rgba_int_t*tmpline; int monochrome = 0; gfxcolor_t monochrome_colors[2]; - - if(newwidth<1 || newheight<1) - return 0; + + if(newwidth<1) + newwidth=1; + if(newheight<1) + newheight=1; int width = image->width; int height = image->height;