Cursor.java:Fixed case where delays == null
This commit is contained in:
parent
6f1f14facb
commit
e7eb679f24
|
@ -104,7 +104,7 @@ public class Cursor {
|
||||||
// Win32 doesn't (afaik) allow for animation based cursors, except when they're
|
// Win32 doesn't (afaik) allow for animation based cursors, except when they're
|
||||||
// in the .ani format, which we don't support.
|
// in the .ani format, which we don't support.
|
||||||
// The cursor animation was therefor developed using java side time tracking.
|
// The cursor animation was therefor developed using java side time tracking.
|
||||||
// unfortunately X flickers when changing cursor. We therefor check for either
|
// unfortunately X flickers when changing cursor. We therefore check for either
|
||||||
// Win32 or X and do accordingly. This hasn't been implemented on Mac, but we
|
// Win32 or X and do accordingly. This hasn't been implemented on Mac, but we
|
||||||
// might want to split it into a X/Win/Mac cursor if it gets too cluttered
|
// might want to split it into a X/Win/Mac cursor if it gets too cluttered
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ public class Cursor {
|
||||||
// create our cursor elements
|
// create our cursor elements
|
||||||
cursors = new CursorElement[1];
|
cursors = new CursorElement[1];
|
||||||
cursors[0] = new CursorElement();
|
cursors[0] = new CursorElement();
|
||||||
cursors[0].cursorHandle = nCreateCursor(width, height, xHotspot, yHotspot, numImages, images_copy, images_copy.position(), delays, delays.position());
|
cursors[0].cursorHandle = nCreateCursor(width, height, xHotspot, yHotspot, numImages, images_copy, images_copy.position(), delays, delays != null ? delays.position() : -1);
|
||||||
break;
|
break;
|
||||||
case Display.PLATFORM_WGL:
|
case Display.PLATFORM_WGL:
|
||||||
// create our cursor elements
|
// create our cursor elements
|
||||||
|
|
Loading…
Reference in New Issue