determining array base offset: replaced trick code with proper code

This commit is contained in:
minjaesong
2020-02-27 17:54:35 +09:00
parent e235b81041
commit 1524919ae0
5 changed files with 25 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ class BLIT {
val writeAddr = toAddr(x, y)
UnsafeHelper.memcpyRaw(
bytes, (if (AppLoader.is32BitJVM) 8 else 16) + yy * width,
bytes, UnsafeHelper.getArrayOffset(bytes) + yy * width,
null, framebuffer.ptr + writeAddr,
width.toLong()
)