From 3cc088e1c3866b57b4392bb8430774e7e40be57a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 27 Jun 2023 01:47:54 +0200 Subject: Update stb image --- src/graphics/font.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src') 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. */ -- cgit v1.2.3