svnno****@sourc*****
svnno****@sourc*****
2009年 8月 27日 (木) 20:36:44 JST
Revision: 173 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=173 Author: yoya Date: 2009-08-27 20:36:44 +0900 (Thu, 27 Aug 2009) Log Message: ----------- _print での RGBA 表示を簡略化 Modified Paths: -------------- trunk/src/swf_argb.c trunk/src/swf_rgb.c trunk/src/swf_rgba.c -------------- next part -------------- Modified: trunk/src/swf_argb.c =================================================================== --- trunk/src/swf_argb.c 2009-08-27 11:35:33 UTC (rev 172) +++ trunk/src/swf_argb.c 2009-08-27 11:36:44 UTC (rev 173) @@ -23,7 +23,7 @@ int swf_argb_print(swf_argb_t *color, int indent_depth) { print_indent(indent_depth); - printf("alpha=0x%02x red=0x%02x green=0x%02X blue=0x%02x\n", + printf("(A)RGB=(%02x)#%02x%02x%02x\n", color->alpha, color->red, color->green, color->blue); return 0; } Modified: trunk/src/swf_rgb.c =================================================================== --- trunk/src/swf_rgb.c 2009-08-27 11:35:33 UTC (rev 172) +++ trunk/src/swf_rgb.c 2009-08-27 11:36:44 UTC (rev 173) @@ -21,7 +21,7 @@ int swf_rgb_print(swf_rgb_t *color, int indent_depth) { print_indent(indent_depth); - printf("red=0x%02x green=0x%02X blue=0x%02x\n", + printf("RGB=#%02x%02x%02x\n", color->red, color->green, color->blue); return 0; } Modified: trunk/src/swf_rgba.c =================================================================== --- trunk/src/swf_rgba.c 2009-08-27 11:35:33 UTC (rev 172) +++ trunk/src/swf_rgba.c 2009-08-27 11:36:44 UTC (rev 173) @@ -23,7 +23,7 @@ int swf_rgba_print(swf_rgba_t *color, int indent_depth) { print_indent(indent_depth); - printf("red=0x%02x green=0x%02X blue=0x%02x alpha=0x%02x\n", + printf("RGB(A)=#%02x%02x%02x(%02x)\n", color->red, color->green, color->blue, color->alpha); return 0; }