Skip to content

Commit d0ab9aa

Browse files
committed
Use direct indexed access instead of slower properties in texture drawing
1 parent 806162c commit d0ab9aa

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
@@ -48,7 +48,7 @@ def draw_texture_rect(
4848

4949
geometry = ctx.geometry_empty
5050
program = ctx.sprite_program_single
51-
program["pos"] = rect.center_x, rect.center_y, 0
51+
program["pos"] = rect.x, rect.y, 0
5252
program["color"] = color.normalized
5353
program["size"] = rect.width, rect.height
5454
program["angle"] = angle

0 commit comments

Comments
 (0)