Cursor.java:Fixed case where delays == null

This commit is contained in:
Elias Naur 2004-04-12 07:20:01 +00:00
parent 6f1f14facb
commit e7eb679f24
1 changed files with 32 additions and 32 deletions

View File

@ -104,7 +104,7 @@ public class Cursor {
// Win32 doesn't (afaik) allow for animation based cursors, except when they're
// in the .ani format, which we don't support.
// 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
// 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
cursors = new CursorElement[1];
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;
case Display.PLATFORM_WGL:
// create our cursor elements