From 552974ffd9f51725c5494b94ad8c914c561fecac Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 18 May 2006 06:09:44 +0000 Subject: [PATCH] * If the export test target is ANSI or UTF-8, dither image with special shaded glyphs. --- test/export.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/export.c b/test/export.c index 50d3b89..6e5ddf4 100644 --- a/test/export.c +++ b/test/export.c @@ -108,6 +108,8 @@ int main(int argc, char *argv[]) dither = cucul_create_dither(32, 256, 256, 4 * 256, 0x00ff0000, 0x0000ff00, 0x000000ff, 0x0); + if(!strcmp(format, "ansi") || !strcmp(format, "utf8")) + cucul_set_dither_charset(dither, "shades"); cucul_dither_bitmap(cv, 0, 0, cucul_get_canvas_width(cv), cucul_get_canvas_height(cv), dither, pixels); cucul_free_dither(dither);