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)