From 0c736f207ccb206e4f099186735ac4ab8d11f7b6 Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 8 Mar 2021 07:47:41 +0000 Subject: name things correctly. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 420bc72..20a27d0 100644 --- a/main.c +++ b/main.c @@ -134,16 +134,16 @@ drawbar(double v) { struct { Point2 p0, p1; - } l = { + } bar = { Pt2(-2,v,1), Pt2(2,v,1) }; char buf[32]; - line(screen, toscreen(l.p0), toscreen(l.p1), 0, 0, 0, display->white, ZP); + line(screen, toscreen(bar.p0), toscreen(bar.p1), 0, 0, 0, display->white, ZP); snprint(buf, sizeof buf, "%.3f", v); - l.p1.x += 10; - string(screen, toscreen(l.p1), display->white, ZP, font, buf); + bar.p1.x += 10; + string(screen, toscreen(bar.p1), display->white, ZP, font, buf); } void -- cgit v1.2.3