Skip to content

Commit 6bc14f7

Browse files
committed
Move drawing code into VgaConsole.
1 parent 03b5360 commit 6bc14f7

File tree

3 files changed

+568
-450
lines changed

3 files changed

+568
-450
lines changed

neotron-os/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,7 @@ pub extern "C" fn os_main(api: &bios::Api) -> ! {
414414
let (width, height) = (mode.text_width(), mode.text_height());
415415

416416
if let (Some(width), Some(height)) = (width, height) {
417-
let mut vga = vgaconsole::VgaConsole::new(
418-
(api.video_get_framebuffer)(),
419-
width as isize,
420-
height as isize,
421-
);
417+
let mut vga = vgaconsole::VgaConsole::new((api.video_get_framebuffer)(), width, height);
422418
vga.clear();
423419
let mut guard = VGA_CONSOLE.lock();
424420
*guard = Some(vga);

0 commit comments

Comments
 (0)