From 7f5fb19a395db62de21c108cecfda118a7770c95 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 1 Apr 2006 15:58:10 +0000 Subject: [PATCH] * Set the default dithering mode to Floyd-Steinberg. --- cucul/bitmap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cucul/bitmap.c b/cucul/bitmap.c index 6ce42fc..c10b91c 100644 --- a/cucul/bitmap.c +++ b/cucul/bitmap.c @@ -314,6 +314,11 @@ struct cucul_bitmap *cucul_create_bitmap(unsigned int bpp, unsigned int w, bitmap->glyphs = ascii_glyphs; bitmap->glyph_count = sizeof(ascii_glyphs) / sizeof(*ascii_glyphs); + /* Default dithering mode */ + bitmap->init_dither = init_fstein_dither; + bitmap->get_dither = get_fstein_dither; + bitmap->increment_dither = increment_fstein_dither; + return bitmap; }