Skip to main content

vga_debug_draw_glyph

Function vga_debug_draw_glyph 

Source
unsafe fn vga_debug_draw_glyph(
    fb: *mut u8,
    pitch: usize,
    x: usize,
    y: usize,
    ch: u8,
    fg: u32,
    bg: u32,
    bpp_bytes: usize,
)
Expand description

Draw a single 8×16 character from the panic font.

First clears the entire cell with bg, then draws the glyph’s foreground pixels. This guarantees crisp, ghost-free text (like Linux fbcon).