Browse Source

* If the export test target is ANSI or UTF-8, dither image with special

shaded glyphs.
tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
552974ffd9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/export.c

+ 2
- 0
test/export.c View File

@@ -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);


Loading…
Cancel
Save