mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
determining array base offset: replaced trick code with proper code
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user