git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed swf_ImageScale for 2x2 images
[swftools.git]
/
lib
/
modules
/
swfbits.c
diff --git
a/lib/modules/swfbits.c
b/lib/modules/swfbits.c
index
837550f
..
8852237
100644
(file)
--- 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));