OSDN Git Service
(root)
/
swfed
/
swfed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf99be
)
trans size fixed
author
Yoshihiro Yamazaki
<yoya@awm.jp>
Tue, 29 Nov 2011 13:40:06 +0000
(22:40 +0900)
committer
Yoshihiro Yamazaki
<yoya@awm.jp>
Tue, 29 Nov 2011 13:40:06 +0000
(22:40 +0900)
src/swf_png.c
patch
|
blob
|
history
diff --git
a/src/swf_png.c
b/src/swf_png.c
index
9681161
..
e442107
100644
(file)
--- a/
src/swf_png.c
+++ b/
src/swf_png.c
@@
-380,7
+380,7
@@
pngconv_lossless2png(void *image_data,
num_trans = i + 1;
if (num_trans > 0) {
trans = malloc(num_trans);
- for (i = 0 ; i <
index_data_count
; i++) {
+ for (i = 0 ; i <
num_trans
; i++) {
trans[i] = rgba_list[i].alpha;
}
png_set_tRNS(png_ptr, png_info_ptr, trans, num_trans,