Browse Source

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

thanks to Sean D'Epagnier.
tags/v0.99.beta14
Sam Hocevar sam 20 years ago
parent
commit
1f8549fc6a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      cucul/dither.c

+ 3
- 3
cucul/dither.c View File

@@ -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…
Cancel
Save