Просмотр исходного кода

Merge pull request #177 from phoekz/master

Fix incorrect printf token in nk_value_format_byte
Micha Mettke 9 лет назад
Родитель
Сommit
507a264f91
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      nuklear.h

+ 1 - 1
nuklear.h

@@ -17196,7 +17196,7 @@ nk_value_float(struct nk_context *ctx, const char *prefix, float value)
 
 
 NK_API void
 NK_API void
 nk_value_color_byte(struct nk_context *ctx, const char *p, struct nk_color c)
 nk_value_color_byte(struct nk_context *ctx, const char *p, struct nk_color c)
-{nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%c, %c, %c, %c)", p, c.r, c.g, c.b, c.a);}
+{nk_labelf(ctx, NK_TEXT_LEFT, "%s: (%u, %u, %u, %u)", p, c.r, c.g, c.b, c.a);}
 
 
 NK_API void
 NK_API void
 nk_value_color_float(struct nk_context *ctx, const char *p, struct nk_color color)
 nk_value_color_float(struct nk_context *ctx, const char *p, struct nk_color color)