From 22d0ccc9f6e7514f076aa24dba23a24313b07eeb Mon Sep 17 00:00:00 2001 From: Marrub Date: Sun, 11 Nov 2018 07:41:01 -0500 Subject: [PATCH] add centering lines for HUD --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index a3db4aa..d647f5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,6 +85,10 @@ fn draw(c: &cairo::Context, v: &mut Stuff) -> Inhibit c.move_to(-VW, 0.0); c.line_to( VW, 0.0); c.stroke(); c.move_to(0.0, -VH); c.line_to(0.0, VH); c.stroke(); + // center (hud) + c.move_to(0.0, HH); c.line_to(VW, HH); c.stroke(); + c.move_to( HW, 0.0); c.line_to(HW, VH); c.stroke(); + // hud borders c.move_to(0.0, VH); c.line_to(VW, VH); c.stroke(); c.move_to( VW, 0.0); c.line_to(VW, VH); c.stroke();