Try using font size 20 for "size-less" text draws

This commit is contained in:
Stephen Seo 2023-02-16 18:05:04 +09:00
parent 47768972c9
commit 12419ffce6

View file

@ -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,