Skip to content

Commit 822e25e

Browse files
committed
Use direct indexed access instead of slower properties in texture drawing
1 parent 891926b commit 822e25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arcade/draw/rect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def draw_texture_rect(
6060

6161
geometry = ctx.geometry_empty
6262
program = ctx.sprite_program_single
63-
program["pos"] = rect.center_x, rect.center_y, 0
63+
program["pos"] = rect.x, rect.y, 0
6464
program["color"] = color.normalized
6565
program["size"] = rect.width, rect.height
6666
program["angle"] = angle

0 commit comments

Comments
 (0)