Converted Cursor and Pbuffer handles to ByteBuffers

This commit is contained in:
Elias Naur 2004-07-25 14:28:50 +00:00
parent efb28a1a85
commit bdf5a43d5e
9 changed files with 131 additions and 94 deletions

View file

@ -200,14 +200,14 @@ public class Mouse {
nSetNativeCursor(currentCursor.getHandle());
currentCursor.setTimeout();
} else {
nSetNativeCursor(0);
nSetNativeCursor(null);
}
}
return oldCursor;
}
/** Native method to set the native cursor */
private static native void nSetNativeCursor(long handle) throws LWJGLException;
private static native void nSetNativeCursor(ByteBuffer handle) throws LWJGLException;
/**
* Gets the minimum size of a native cursor. Can only be called if