aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2021-03-08 07:47:41 +0000
committerrodri <rgl@antares-labs.eu>2021-03-08 07:47:41 +0000
commit0c736f207ccb206e4f099186735ac4ab8d11f7b6 (patch)
treebc50f37dae0416ed07fe939b16bb7374c9a96b0e
parent5ecc14e07c5dcc40e418f450f0c34dceb7f7e326 (diff)
downloadgamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.tar.gz
gamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.tar.bz2
gamephysics-0c736f207ccb206e4f099186735ac4ab8d11f7b6.zip
name things correctly.
-rw-r--r--main.c8
1 files 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