From 6f6b08c06b04a37310a8b31084deb8e2f2a82a63 Mon Sep 17 00:00:00 2001 From: falsycat Date: Mon, 14 Oct 2019 00:00:00 +0000 Subject: [PATCH] [fix] Fixed an issue that rendered characters sometimes were dirty. --- src/sj/Text.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sj/Text.d b/src/sj/Text.d index 9d699e5..15fc004 100644 --- a/src/sj/Text.d +++ b/src/sj/Text.d @@ -96,7 +96,7 @@ class Text { *vertices_ptr++ = uvright; *vertices_ptr++ = uvbottom; - bmp_width += srcsz.x; + bmp_width += srcsz.x + 1; model_width_ += advance; ++glyph_count; }