From 0cbd5fd9834691611abc48cfa7b4c19c68615f18 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 9 May 2006 00:47:28 +0000 Subject: [PATCH] * Cosmetic fix in test/font.c. * Use UTF-8 output in test/text.c instead of ANSI. --- test/font.c | 4 ++-- test/text.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/font.c b/test/font.c index d28e3a6..28904c6 100644 --- a/test/font.c +++ b/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); diff --git a/test/text.c b/test/text.c index 60d0a05..03c9674 100644 --- a/test/text.c +++ b/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);