diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index 9f37fa901..c39f49e1f 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -66,7 +66,7 @@ fn xmain() -> ! { } Opcode::Circle(mid, radius) => { info!("GFX: Drawing cicrle at {:?} radius {:?}", mid, radius); - op::circle(display.native_buffer(), mid.x as _, mid.y as _, radius as _, 1, op::PixelColor::On); + op::circle(display.native_buffer(), mid.x as _, mid.y as _, radius as _, 0, op::PixelColor::On); } Opcode::Style(stroke_width, stroke_color, fill_color) => { current_color = stroke_color; diff --git a/services/shell/src/main.rs b/services/shell/src/main.rs index 3804813ea..0912e2779 100644 --- a/services/shell/src/main.rs +++ b/services/shell/src/main.rs @@ -128,7 +128,6 @@ impl Bounce { fn shell_main() -> ! { timer::init(); log_server::init_wait().unwrap(); - let mut loops = 0; // let log_server_id = xous::SID::from_bytes(b"xous-logs-output").unwrap(); let graphics_server_id = xous::SID::from_bytes(b"graphics-server ").unwrap(); @@ -227,14 +226,13 @@ fn shell_main() -> ! { info!("drawing string: {}", string_buffer); graphics_server::draw_string(graphics_conn, &string_buffer).expect("unable to draw string"); - //ticktimer_server::sleep_ms(ticktimer_conn, 2000 + loops).expect("couldn't sleep"); - loops += 1; + ticktimer_server::sleep_ms(ticktimer_conn, 2000).expect("couldn't sleep"); // draw the ball bouncyball.update(); graphics_server::clear_region(graphics_conn, bouncyball.bounds.top_left().x as _, bouncyball.bounds.top_left().y as _, - bouncyball.bounds.bottom_right().x as _, bouncyball.bounds.bottom_right().y as _) + bouncyball.bounds.bottom_right().x as _, bouncyball.bounds.bottom_right().y as usize + 1) .expect("unable to clear region"); graphics_server::draw_circle( graphics_conn,