git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9b37c
)
fixed swf_ImageScale for 2x2 images
author
kramm
<kramm>
Sat, 26 Feb 2005 19:31:27 +0000
(19:31 +0000)
committer
kramm
<kramm>
Sat, 26 Feb 2005 19:31:27 +0000
(19:31 +0000)
lib/modules/swfbits.c
patch
|
blob
|
history
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));