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:
b712184
)
fixed segfault
author
Matthias Kramm
<kramm@quiss.org>
Wed, 14 Apr 2010 22:11:26 +0000
(15:11 -0700)
committer
Matthias Kramm
<kramm@quiss.org>
Wed, 14 Apr 2010 22:11:26 +0000
(15:11 -0700)
lib/gfximage.c
patch
|
blob
|
history
diff --git
a/lib/gfximage.c
b/lib/gfximage.c
index
3e6cfde
..
62b60c5
100644
(file)
--- 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;