Skip to content

Commit 371e973

Browse files
committed
fix(android): Matrix. getValues fix for buffers
1 parent 5339b04 commit 371e973

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin/platforms/android/java/com/akylas/canvas/CanvasMatrix.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,10 @@ public void setValues (java.nio.FloatBuffer points) {
4444
setValues(pointsArray);
4545
points.rewind();
4646
}
47+
public void getValues (java.nio.FloatBuffer points) {
48+
float[] pointsArray = new float[points.capacity()];
49+
getValues(pointsArray);
50+
points.put(pointsArray);
51+
points.rewind();
52+
}
4753
}

0 commit comments

Comments
 (0)