From 0e3128798912a46705323d5c6546c2bdf2ade678 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 25 Nov 2021 07:47:39 +0100 Subject: Fix possible corrupt font atlas --- include/mgl/graphics/font.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/mgl/graphics') diff --git a/include/mgl/graphics/font.h b/include/mgl/graphics/font.h index 6b10feb..55d364f 100644 --- a/include/mgl/graphics/font.h +++ b/include/mgl/graphics/font.h @@ -22,6 +22,8 @@ typedef struct { int prev_height; mgl_vec2i pointer_position; mgl_font_atlas_render_section render_section; + int initial_section_height; + int right_section_height; } mgl_font_atlas; struct mgl_font { @@ -30,6 +32,7 @@ struct mgl_font { mgl_font_atlas font_atlas; unsigned int character_size; mgl_font_char_map char_map; + int current_line_max_height; void *font_info; }; -- cgit v1.2.3