maybe commit
This commit is contained in:
parent
ffdb6c2816
commit
0189236893
|
@ -124,14 +124,14 @@ pub fn kernel_main() -> ! {
|
|||
let ret = WasmProgram::new_from_bytes(&[0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00]);
|
||||
trace!("Binary Valid: {:?}", ret.validate_header());
|
||||
|
||||
if BOOT_CONF.run_tests {
|
||||
// quick and dirty testing framework
|
||||
// if BOOT_CONF.run_tests {
|
||||
screen_writer_test();
|
||||
socket_test();
|
||||
graphics_pipe_test();
|
||||
socket_startup_rng();
|
||||
socket_test_rng();
|
||||
}
|
||||
// }
|
||||
|
||||
if BOOT_CONF.run_demos {
|
||||
graphics_api_demo();
|
||||
|
|
|
@ -69,7 +69,7 @@ pub fn draw_char(mut x: u32, mut y: u32, character: char, color: Rgba64) {
|
|||
);
|
||||
|
||||
// elf: I don't know if GLYPH_HEIGHT is in the right units here. I'm just guessing.
|
||||
if x as usize > SCREEN_BUFFER.lock().size.x {
|
||||
if x as usize > mode.size.x {
|
||||
x = 0;
|
||||
y += (GLYPH_HEIGHT * FONT_SCALE) as u32;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue