Try using font size 20 for "size-less" text draws
This commit is contained in:
parent
47768972c9
commit
12419ffce6
1 changed files with 4 additions and 8 deletions
12
src/main.rs
12
src/main.rs
|
@ -1880,13 +1880,9 @@ impl GameState {
|
||||||
} else {
|
} else {
|
||||||
window.get_gi_mut().draw_rect(rect, *c)?;
|
window.get_gi_mut().draw_rect(rect, *c)?;
|
||||||
}
|
}
|
||||||
window.get_font_mut(&self.font)?.draw(
|
window
|
||||||
text,
|
.get_font_mut(&self.font)?
|
||||||
rect.h.round() as u32,
|
.draw(text, 20, rect.x, rect.y, *text_c)?;
|
||||||
rect.x,
|
|
||||||
rect.y,
|
|
||||||
*text_c,
|
|
||||||
)?;
|
|
||||||
}
|
}
|
||||||
MenuItemType::AppearingText {
|
MenuItemType::AppearingText {
|
||||||
text,
|
text,
|
||||||
|
@ -1901,7 +1897,7 @@ impl GameState {
|
||||||
} else {
|
} else {
|
||||||
text
|
text
|
||||||
},
|
},
|
||||||
text_size.round() as u32,
|
20,
|
||||||
rect.x,
|
rect.x,
|
||||||
rect.y,
|
rect.y,
|
||||||
*text_c,
|
*text_c,
|
||||||
|
|
Loading…
Reference in a new issue