From b571c453fc6fcae1744e895a2d279d6f20a5942e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Thu, 8 Feb 2024 17:27:33 -0300 Subject: [PATCH] Fix first glyph clipping when drawing text with FreeType fonts (fix aseprite/aseprite#4199) --- os/draw_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/draw_text.cpp b/os/draw_text.cpp index 23b660f43..c9b5ad34c 100644 --- a/os/draw_text.cpp +++ b/os/draw_text.cpp @@ -170,7 +170,7 @@ retry:; ++p; } else if (glyph->bitmap->pixel_mode == FT_PIXEL_MODE_MONO) { - if (bit == 8) { + if (++bit == 8) { bit = 0; ++p; }