diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-06-27 01:47:54 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-06-27 01:47:54 +0200 |
commit | 3cc088e1c3866b57b4392bb8430774e7e40be57a (patch) | |
tree | 1891e1fdb111bf091547f71e3da7afc26ed4d5da /src/graphics | |
parent | ae948467c6233c7fe1ee8be20b9fdf21da68c42d (diff) |
Update stb image
Diffstat (limited to 'src/graphics')
-rw-r--r-- | src/graphics/font.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/graphics/font.c b/src/graphics/font.c index 4fd9840..12235f6 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -98,17 +98,16 @@ static void mgl_font_handle_new_render_position(mgl_font *self, int glyph_width) |----| And then texture atlas gets resized: - |----|----| | - |ABCD| | <-| 1. The right side gets filled in with new glyphs. - |EDFG| | <-| - |----|----| | - | | | | - | | | | - | | | | - |----|----| | - | - ^^^^^^^^^^^ | - ---------------| + |----|----| + |ABCD| | <- 1. The right side gets filled in with new glyphs. + |EDFG| | <- + |----|----| + | | | + | | | + | | | + |----|----| + + ^^^^^^^^^^^ 2. The bottom side gets filled in with new glyphs after the right side is filled with glyphs. */ |