diff --git a/src/main.rs b/src/main.rs index cdfacb4..bc11d90 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,13 +26,10 @@ fn main() { ctx.screen.clear((0, 0, 0, 255).into()).ok(); - Rectangle::new( - Point::new(state.x, state.y), - Size::new(ctx.screen.width(), 1), - ) - .into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into())) - .draw(&mut ctx.screen) - .ok(); + Rectangle::new(Point::new(state.x - 5, state.y - 5), Size::new(10, 10)) + .into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into())) + .draw(&mut ctx.screen) + .ok(); true });