From 4e0c6588e1538343dc2ebd0ae961b595e577832d Mon Sep 17 00:00:00 2001 From: Matt Low Date: Sun, 15 Nov 2020 13:26:57 +0400 Subject: [PATCH] Simplify draw.rect --- geom/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geom/draw.py b/geom/draw.py index 903ec1f..0909375 100644 --- a/geom/draw.py +++ b/geom/draw.py @@ -24,7 +24,7 @@ def polygon(surface, color, vertices, width): def rect(surface, color, x, y, height, width, stroke_width): pygame.draw.rect(surface, color, - pygame.Rect(OFFSET[0] + x, OFFSET[1] + y, height, width), + pygame.Rect(*add(*OFFSET, x, y), height, width), stroke_width)