ソースを参照

* Cosmetic fix in test/font.c.

* Use UTF-8 output in test/text.c instead of ANSI.
tags/v0.99.beta14
Sam Hocevar sam 18年前
コミット
0cbd5fd983
2個のファイルの変更4行の追加4行の削除
  1. +2
    -2
      test/font.c
  2. +2
    -2
      test/text.c

+ 2
- 2
test/font.c ファイルの表示

@@ -80,8 +80,8 @@ int main(int argc, char *argv[])
if(__BYTE_ORDER == __BIG_ENDIAN)
#else
/* This is compile-time optimised with at least -O1 or -Os */
uint32_t const rmask = 0x12345678;
if(*(uint8_t const *)&rmask == 0x12)
uint32_t const tmp = 0x12345678;
if(*(uint8_t const *)&tmp == 0x12)
#endif
d = cucul_create_dither(32, w, h, 4 * w,
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);


+ 2
- 2
test/text.c ファイルの表示

@@ -40,14 +40,14 @@ int main(void)
cv = cucul_import_canvas(buffer, "text");
cucul_free_buffer(buffer);

buffer = cucul_export_canvas(cv, "ansi");
buffer = cucul_export_canvas(cv, "utf8");
fwrite(cucul_get_buffer_data(buffer),
cucul_get_buffer_size(buffer), 1, stdout);
cucul_free_buffer(buffer);

cucul_rotate(cv);

buffer = cucul_export_canvas(cv, "ansi");
buffer = cucul_export_canvas(cv, "utf8");
fwrite(cucul_get_buffer_data(buffer),
cucul_get_buffer_size(buffer), 1, stdout);
cucul_free_buffer(buffer);


読み込み中…
キャンセル
保存