improve hardware font
Intrepid/Prometeu/Runtime/pipeline/head There was a failure building this commit
Intrepid/Prometeu/Runtime/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -252,11 +252,7 @@ fn draw_button(gfx: &mut dyn GfxBridge, rect: Rect, label: &str, hovered: bool)
|
||||
}
|
||||
|
||||
fn draw_buffer_text(gfx: &mut dyn GfxBridge, x: i32, y: i32, text: &str, color: Color) {
|
||||
let mut cx = x;
|
||||
for ch in text.chars() {
|
||||
gfx.draw_char(cx, y, ch, color);
|
||||
cx += 4;
|
||||
}
|
||||
gfx.draw_text(x, y, text, color);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user