Skip to content

Commit 0bef5df

Browse files
committed
fixed deprecated argument in pygame aaline
1 parent 6bcde4b commit 0bef5df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygame_matplotlib/backend_pygame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
186186
# Antialiased cannot hanlde linewidth > 1
187187
pygame.draw.aaline
188188
if gc.get_antialiased() and linewidth <= 1
189-
else pygame.draw.line
189+
else lambda *args: pygame.draw.line(*args, width=linewidth)
190190
)
191191

192192
previous_point = (0, 0)
@@ -196,7 +196,7 @@ def draw_path(self, gc, path, transform, rgbFace=None):
196196
logger.debug(point, code)
197197
if code == Path.LINETO:
198198
draw_func(
199-
self.surface, color, previous_point, point, linewidth
199+
self.surface, color, previous_point, point
200200
)
201201
previous_point = point
202202
poly_points.append(point)

0 commit comments

Comments
 (0)