From f71113d6a6bcf0031d1edd680d734d3b471e5fee Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 26 Sep 2006 21:51:13 +0000 Subject: [PATCH] * Fix libcucul font rendering. Now that the default canvas has a transparent background, we need to explicitely draw our temporary string in white on black. --- src/render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/render.c b/src/render.c index 64cd0a3..f88ce83 100644 --- a/src/render.c +++ b/src/render.c @@ -34,6 +34,7 @@ cucul_canvas_t *render_big(uint32_t const *string, unsigned int length) unsigned int w, h, x, y, miny, maxy; cv = cucul_create_canvas(length, 1); + cucul_set_color(cv, CUCUL_COLOR_WHITE, CUCUL_COLOR_BLACK); for(x = 0; x < length; x++) cucul_putchar(cv, x, 0, string[x]);