From e7eb679f2462fe1e3802bcf9463b00a20180be51 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 12 Apr 2004 07:20:01 +0000 Subject: [PATCH] Cursor.java:Fixed case where delays == null --- src/java/org/lwjgl/input/Cursor.java | 64 ++++++++++++++-------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/src/java/org/lwjgl/input/Cursor.java b/src/java/org/lwjgl/input/Cursor.java index 222e9173..767f4c27 100644 --- a/src/java/org/lwjgl/input/Cursor.java +++ b/src/java/org/lwjgl/input/Cursor.java @@ -101,38 +101,38 @@ public class Cursor { IntBuffer images_copy = ByteBuffer.allocateDirect(images.remaining()*4).order(ByteOrder.nativeOrder()).asIntBuffer(); flipImages(width, height, numImages, images, images_copy); - // 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 - // 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 - - switch(Display.getPlatform()) { - case Display.PLATFORM_GLX: - // 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()); - break; - case Display.PLATFORM_WGL: - // create our cursor elements - cursors = new CursorElement[numImages]; - for(int i=0; i