mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-27 23:55:11 +01:00
use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow
This commit is contained in:
parent
ede23fc9a3
commit
de0a724da7
|
|
@ -207,7 +207,7 @@ public class HWCursorTest {
|
|||
}
|
||||
cursorImages.flip();
|
||||
cursorDelays.flip();
|
||||
cursor[2] = new Cursor(Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize()/2, Cursor.getMaxCursorSize()/2, cursorImageCount, cursorImages, cursorDelays);
|
||||
cursor[2] = new Cursor(cursorWidth, cursorHeight, cursorWidth/2, cursorHeight/2, cursorImageCount, cursorImages, cursorDelays);
|
||||
// ----------------------------------
|
||||
|
||||
Mouse.setNativeCursor(cursor[0]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue