瀏覽代碼

* Fixed typos in cucul/dither.c that prevented using ordered dither modes,

thanks to Sean D'Epagnier.
tags/v0.99.beta14
Sam Hocevar sam 19 年之前
父節點
當前提交
1f8549fc6a
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      cucul/dither.c

+ 3
- 3
cucul/dither.c 查看文件

@@ -757,7 +757,7 @@ int cucul_set_dither_mode(cucul_dither_t *d, char const *str)
d->get_dither = get_ordered4_dither; d->get_dither = get_ordered4_dither;
d->increment_dither = increment_ordered4_dither; d->increment_dither = increment_ordered4_dither;
} }
else if(!strcasecmp(str, "ordered4"))
else if(!strcasecmp(str, "ordered8"))
{ {
d->init_dither = init_ordered8_dither; d->init_dither = init_ordered8_dither;
d->get_dither = get_ordered8_dither; d->get_dither = get_ordered8_dither;
@@ -805,8 +805,8 @@ char const * const * cucul_get_dither_mode_list(cucul_dither_t const *d)
{ {
"none", "no dithering", "none", "no dithering",
"ordered2", "2x2 ordered dithering", "ordered2", "2x2 ordered dithering",
"ordered2", "2x2 ordered dithering",
"ordered2", "2x2 ordered dithering",
"ordered4", "4x4 ordered dithering",
"ordered8", "8x8 ordered dithering",
"random", "random dithering", "random", "random dithering",
"fstein", "Floyd-Steinberg dithering", "fstein", "Floyd-Steinberg dithering",
NULL, NULL NULL, NULL


Loading…
取消
儲存