mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Updated Win32 native interface to use IntBuffers rather than ByteBuffers
This commit is contained in:
parent
513fd74301
commit
d99ec21e90
1 changed files with 4 additions and 4 deletions
|
|
@ -179,12 +179,12 @@ final class Win32Display implements DisplayImplementation {
|
|||
int size = icons[i].limit();
|
||||
|
||||
if ((((int) Math.sqrt(size)) == 16) && (!done16)) {
|
||||
nSetWindowIcon16(icons[i]);
|
||||
nSetWindowIcon16(icons[i].asIntBuffer());
|
||||
used++;
|
||||
done16 = true;
|
||||
}
|
||||
if ((((int) Math.sqrt(size)) == 32) && (!done32)) {
|
||||
nSetWindowIcon32(icons[i]);
|
||||
nSetWindowIcon32(icons[i].asIntBuffer());
|
||||
used++;
|
||||
done32 = true;
|
||||
}
|
||||
|
|
@ -193,7 +193,7 @@ final class Win32Display implements DisplayImplementation {
|
|||
return used;
|
||||
}
|
||||
|
||||
private static native int nSetWindowIcon16(ByteBuffer icon);
|
||||
private static native int nSetWindowIcon16(IntBuffer icon);
|
||||
|
||||
private static native int nSetWindowIcon32(ByteBuffer icon);
|
||||
private static native int nSetWindowIcon32(IntBuffer icon);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue