From 5a659ac1d929f9dbec3bed03f896617a8e2564c1 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Sat, 20 Oct 2007 14:48:07 +0000 Subject: [PATCH] make sure that any windows cursor image pixel is either 0xffxxxxxx or 0x00000000 --- src/java/org/lwjgl/input/Cursor.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/java/org/lwjgl/input/Cursor.java b/src/java/org/lwjgl/input/Cursor.java index 2e22b66c..ea33638e 100644 --- a/src/java/org/lwjgl/input/Cursor.java +++ b/src/java/org/lwjgl/input/Cursor.java @@ -179,6 +179,17 @@ public class Cursor { // create our cursor elements cursors = new CursorElement[numImages]; for(int i=0; i> 24 & 0xff; + if(alpha != 0xff) { + images_copy.put(index, 0); + } + } + Object handle = Mouse.getImplementation().createCursor(width, height, xHotspot, yHotspot, 1, images_copy, null); long delay = (delays != null) ? delays.get(i) : 0; long timeout = System.currentTimeMillis();