We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28bd6ca commit 47a4c85Copy full SHA for 47a4c85
common/src/logger.rs
@@ -103,12 +103,10 @@ impl Logger {
103
if self.x_pos >= self.width() {
104
self.newline();
105
}
106
- const BITMAP_LETTER_WIDTH: usize =
107
- get_bitmap_width(FontWeight::Regular, BitmapHeight::Size14);
108
- if self.y_pos >= (self.height() - BITMAP_LETTER_WIDTH) {
+ let bitmap_char = get_bitmap(c, FontWeight::Regular, BitmapHeight::Size14).unwrap();
+ if self.y_pos >= (self.height() - bitmap_char.height()) {
109
self.clear();
110
111
- let bitmap_char = get_bitmap(c, FontWeight::Regular, BitmapHeight::Size14).unwrap();
112
self.write_rendered_char(bitmap_char);
113
114
0 commit comments