Ver código fonte

* 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 anos atrás
pai
commit
1f8549fc6a
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      cucul/dither.c

+ 3
- 3
cucul/dither.c Ver arquivo

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


Carregando…
Cancelar
Salvar