Skip to content

Commit

Permalink
Fix first glyph clipping when drawing text with FreeType fonts (fix a…
Browse files Browse the repository at this point in the history
  • Loading branch information
martincapello committed Feb 8, 2024
1 parent 077dbaf commit b571c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os/draw_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b571c45

Please sign in to comment.