From 3ed992bcfe4f55c4c2ca1ccd49d4ab81796d04d3 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 26 Feb 2005 19:31:27 +0000 Subject: [PATCH] fixed swf_ImageScale for 2x2 images --- lib/modules/swfbits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index 837550f..8852237 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -977,7 +977,7 @@ static scale_lookup_t**make_scale_lookup(int width, int newwidth) RGBA* swf_ImageScale(RGBA*data, int width, int height, int newwidth, int newheight) { - if(newwidth<2 || newheight<2) + if(newwidth<1 || newheight<1) return 0; int x,y; RGBA* newdata= (RGBA*)malloc(newwidth*newheight*sizeof(RGBA)); -- 1.7.10.4