Skip to content

Commit 7c128c0

Browse files
committed
Fix overbroad PointList in draw_rect_outline
1 parent 4bdce9c commit 7c128c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arcade/draw/rect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from arcade.math import rotate_point
66
from arcade.sprite import BasicSprite
77
from arcade.texture import Texture
8-
from arcade.types import LBWH, LRBT, RGBA255, XYWH, Color, PointList, Rect
8+
from arcade.types import LBWH, LRBT, RGBA255, XYWH, Color, Rect, Point2List
99
from arcade.window_commands import get_window
1010

1111
from .helpers import _generic_draw_line_strip
@@ -220,7 +220,7 @@ def draw_rect_outline(
220220
o_lt = rect.top_left.x - HALF_BORDER, rect.top_right.y + HALF_BORDER
221221
# fmt: on
222222

223-
point_list: PointList = (o_lt, i_lt, o_rt, i_rt, o_rb, i_rb, o_lb, i_lb, o_lt, i_lt)
223+
point_list: Point2List = (o_lt, i_lt, o_rt, i_rt, o_rb, i_rb, o_lb, i_lb, o_lt, i_lt)
224224

225225
if tilt_angle != 0:
226226
point_list_2 = []

0 commit comments

Comments
 (0)