瀏覽代碼

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

shaded glyphs.
tags/v0.99.beta14
Sam Hocevar sam 18 年之前
父節點
當前提交
552974ffd9
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      test/export.c

+ 2
- 0
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);


Loading…
取消
儲存