Skip to content

Commit dbacaba

Browse files
committed
fixed src/dst in copy() method
1 parent d6908c8 commit dbacaba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/processing/a2d/PGraphicsAndroid2D.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,8 +2330,8 @@ public void copy(int sx, int sy, int sw, int sh,
23302330
// Bitmap bitsy = Bitmap.createBitmap(image, sx, sy, sw, sh);
23312331
// rect.set(dx, dy, dx + dw, dy + dh);
23322332
// canvas.drawBitmap(bitsy,
2333-
rect.set(sx, sy, sx+sw, sy+sh);
2334-
Rect src = new Rect(dx, dy, dx+dw, dy+dh);
2333+
rect.set(dx, dy, dx+dw, dy+dh);
2334+
Rect src = new Rect(sx, sy, sx+sw, sy+sh);
23352335
canvas.drawBitmap(bitmap, src, rect, null);
23362336

23372337
// if ((sw != dw) || (sh != dh)) {

0 commit comments

Comments
 (0)