Skip to content

Commit

Permalink
Fix pixmap drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Dec 11, 2024
1 parent fac27d7 commit 94fa32e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ static private String getFormatString(int format) {
"var startIndex = pixels;" +
"var endIndex = startIndex + bytesSize;" +
"var heapArray = Gdx.HEAPU8.subarray(startIndex, endIndex);" +
"var newArray = new Uint8Array(heapArray);" +
"return newArray;"
"return heapArray;"
)
private static native Uint8ArrayWrapper load(@JSByRef() int[] nativeData, @JSByRef() byte[] buffer, int offset, int len); /*MANUAL
const unsigned char* p_buffer = (const unsigned char*)env->GetPrimitiveArrayCritical(buffer, 0);
Expand Down

0 comments on commit 94fa32e

Please sign in to comment.