svnno****@sourc*****
svnno****@sourc*****
2009年 2月 22日 (日) 04:11:48 JST
Revision: 120 http://svn.sourceforge.jp/view?root=swfed&view=rev&rev=120 Author: yoya Date: 2009-02-22 04:11:48 +0900 (Sun, 22 Feb 2009) Log Message: ----------- 透過GIF=>Lossless変換の際に透過indexで RGB を二度代入していたので一度で済むように改善 Modified Paths: -------------- trunk/src/swf_gif.c -------------- next part -------------- Modified: trunk/src/swf_gif.c =================================================================== --- trunk/src/swf_gif.c 2009-02-15 16:55:22 UTC (rev 119) +++ trunk/src/swf_gif.c 2009-02-21 19:11:48 UTC (rev 120) @@ -169,15 +169,15 @@ } else { // Lossless2 swf_rgba_t *result_colormap = malloc(sizeof(swf_rgba_t) * palette_num); for (i=0 ; i < palette_num ; i++) { - result_colormap[i].red = ColorMap->Colors[i].Red; - result_colormap[i].green = ColorMap->Colors[i].Green; - result_colormap[i].blue = ColorMap->Colors[i].Blue; if (i == trans_index) { result_colormap[i].red = 0x0; result_colormap[i].green = 0x0; result_colormap[i].blue = 0x0; result_colormap[i].alpha = 0x0; } else { + result_colormap[i].red = ColorMap->Colors[i].Red; + result_colormap[i].green = ColorMap->Colors[i].Green; + result_colormap[i].blue = ColorMap->Colors[i].Blue; result_colormap[i].alpha = 0xff; } }