From 12419ffce66c406b01c0baa162a05fd78801bff2 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 16 Feb 2023 18:05:04 +0900 Subject: [PATCH] Try using font size 20 for "size-less" text draws --- src/main.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7538549..28f708b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1880,13 +1880,9 @@ impl GameState { } else { window.get_gi_mut().draw_rect(rect, *c)?; } - window.get_font_mut(&self.font)?.draw( - text, - rect.h.round() as u32, - rect.x, - rect.y, - *text_c, - )?; + window + .get_font_mut(&self.font)? + .draw(text, 20, rect.x, rect.y, *text_c)?; } MenuItemType::AppearingText { text, @@ -1901,7 +1897,7 @@ impl GameState { } else { text }, - text_size.round() as u32, + 20, rect.x, rect.y, *text_c,