瀏覽代碼

* 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.
pull/1/head
Sam Hocevar sam 18 年之前
父節點
當前提交
f71113d6a6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/render.c

+ 1
- 0
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]);



Loading…
取消
儲存