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 365366d commit 39cdd60Copy full SHA for 39cdd60
src/aero_kernel/src/rendy.rs
@@ -605,6 +605,11 @@ impl<'this> DebugRendy<'this> {
605
}
606
607
fn plot_char(&mut self, x: usize, y: usize, char: Character) {
608
+ let ch = match char.char {
609
+ ch if ch.is_ascii() => ch,
610
+ _ => '?' as char,
611
+ };
612
+
613
if x >= self.cols || y >= self.rows {
614
return;
615
@@ -615,7 +620,7 @@ impl<'this> DebugRendy<'this> {
620
let glyph = unsafe {
616
621
self.vga_font_bool
617
622
.as_ptr()
618
- .add(char.char as usize * DEFAULT_FONT_HEIGHT * DEFAULT_FONT_WIDTH)
623
+ .add(ch as usize * DEFAULT_FONT_HEIGHT * DEFAULT_FONT_WIDTH)
619
624
};
625
626
// naming: fx, fy for font coordinates and gx, gy for glyph coordinates
0 commit comments