From 149fbbd3f71c0c217bc81ed29e3bbe354912bf19 Mon Sep 17 00:00:00 2001 From: polsevev Date: Thu, 30 Nov 2023 20:20:48 +0100 Subject: [PATCH] brokey --- src/main.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index cbd63a8..6f60b65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,7 @@ fn update(state: &mut State) { fn draw(gfx: &mut Graphics, state: &mut State) { let mut draw = gfx.create_draw(); - + draw.clear(Color::BLACK); let text = if state.next.is_some() { @@ -71,12 +71,11 @@ fn draw(gfx: &mut Graphics, state: &mut State) { } else { String::new() }; - draw.text(&state.font, &text) - .position(100., 100.) - .size(60.) - .color(Color::WHITE) - .h_align_center() - .v_align_middle(); + gfx.render(&draw); } + +fn drawArr(draw: &mut Draw, screen_width: u32, screen_height: u32){ + draw.rect(, size) +} \ No newline at end of file