[Swfed-svn] swfed-svn [165] printf の書式を誤っていたので修正 (02x => %02x)

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 6月 21日 (日) 22:17:12 JST


Revision: 165
          http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=165
Author:   yoya
Date:     2009-06-21 22:17:12 +0900 (Sun, 21 Jun 2009)

Log Message:
-----------
printf の書式を誤っていたので修正 (02x => %02x)

Modified Paths:
--------------
    trunk/src/swf_fill_style_solid.c
    trunk/src/swf_tag_edit.c


-------------- next part --------------
Modified: trunk/src/swf_fill_style_solid.c
===================================================================
--- trunk/src/swf_fill_style_solid.c	2009-06-21 13:14:17 UTC (rev 164)
+++ trunk/src/swf_fill_style_solid.c	2009-06-21 13:17:12 UTC (rev 165)
@@ -39,7 +39,7 @@
     print_indent(indent_depth);
     printf("fill_style_solid");
     if (tag->tag == 46 || tag->tag == 84) { // DefineMorphShape, DefineMorphShape2
-        printf("  #02x02x02x(02x)  morph:#02x02x02x(02x)",
+        printf("  #%02x%02x%02x(%02x)  morph:#%02x%02x%02x(%02x)",
                fill_style_solid->rgba.red,
                fill_style_solid->rgba.green,
                fill_style_solid->rgba.blue,
@@ -49,13 +49,13 @@
                fill_style_solid->rgba_morph.blue,
                fill_style_solid->rgba_morph.alpha);
     } else if (tag->tag == 32) { // DefineShape3
-        printf("  #02x02x02x(02x)",
+        printf("  #%02x%02x%02x(%02x)",
                fill_style_solid->rgba.red,
                fill_style_solid->rgba.green,
                fill_style_solid->rgba.blue,
                fill_style_solid->rgba.alpha);
     } else {
-        printf("  #02x02x02x",
+        printf("  #%02x%02x%02x",
                fill_style_solid->rgb.red,
                fill_style_solid->rgb.green,
                fill_style_solid->rgb.blue);

Modified: trunk/src/swf_tag_edit.c
===================================================================
--- trunk/src/swf_tag_edit.c	2009-06-21 13:14:17 UTC (rev 164)
+++ trunk/src/swf_tag_edit.c	2009-06-21 13:17:12 UTC (rev 165)
@@ -218,7 +218,7 @@
                swf_tag_edit->edit_font_height / SWF_TWIPS);
     }
     if (swf_tag_edit->edit_has_color) {
-        printf("  color=#02x#02x#02x(#02x)",
+        printf("  color=#%02x#%02x#%02x(#%02x)",
                swf_tag_edit->edit_color.red,
                swf_tag_edit->edit_color.green,
                swf_tag_edit->edit_color.blue,



Swfed-svn メーリングリストの案内
Back to archive index