Skip to content

Commit

Permalink
[Kernel] Fix testui
Browse files Browse the repository at this point in the history
  • Loading branch information
snowflake committed Aug 7, 2018
1 parent 9bb69ab commit 65a303a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion kernel/src/kmain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub extern "C" fn kmain(magic: usize, boot_info: *const Info) -> ! {
display.rect(x, y, w, 100, Color::rgb(0, 0, 0));
display.rounded_rect(x, y, w, h, 2, false, Color::rgb(255, 255, 255));

progress_bar(&mut display, x, y, resolution_w, 50);
progress_bar(&mut display, x, y, resolution_w, 100);
}

shell::execute(&mut display);
Expand Down
10 changes: 5 additions & 5 deletions kernel/src/testui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ use display::Display;

pub fn uidraw(display: &mut Display) {
let (width, height) = { (display.width(), display.height()) };
println! ("SnowFlake boot ok. ");
loop {
display.rect(0, 0, width, height, Color::rgb(50, 45, 55));
}
let (width2, height2) = { (20, 20) };

println! ("SnowFlake UI Test.");
display.rect(0, 0, width, height, Color::rgb(50, 45, 55));
display.rect(0, 0, width2, height2, Color::rgb(255, 255, 255));
}

0 comments on commit 65a303a

Please sign in to comment.