Skip to content

Commit

Permalink
Pixmap optimizations (potential crash fix)
Browse files Browse the repository at this point in the history
(cherry picked from commit 480129c)
  • Loading branch information
Anuken authored and buthed010203 committed Jun 2, 2024
1 parent bacc656 commit 71fcf42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc-core/src/arc/graphics/Pixmap.java
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public void draw(Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight,
startX = Math.max(dstx, 0),
endX = Math.min(dstx + Math.min(dstWidth, owidth), width),
offsetY = dsty - srcy,
scanX = Math.max(srcx, -dstx),
scanX = Math.max(Math.max(srcx, -dstx), 0),
scanWidth = (endX - startX) * 4;

while(startY < endY){
Expand Down

0 comments on commit 71fcf42

Please sign in to comment.