aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-25 07:47:39 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-25 07:47:39 +0100
commit0e3128798912a46705323d5c6546c2bdf2ade678 (patch)
treebb9bd49d9718695ffb2f1fda1e6b8dce63aad035 /include
parent6b7fbf4fe476d908fd44ca9421363e053324ba69 (diff)
Fix possible corrupt font atlas
Diffstat (limited to 'include')
-rw-r--r--include/mgl/graphics/font.h3
1 files changed, 3 insertions, 0 deletions
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;
};