fixed swf_ImageScale for 2x2 images
authorkramm <kramm>
Sat, 26 Feb 2005 19:31:27 +0000 (19:31 +0000)
committerkramm <kramm>
Sat, 26 Feb 2005 19:31:27 +0000 (19:31 +0000)
lib/modules/swfbits.c

index 837550f..8852237 100644 (file)
@@ -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));