mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 23:14:19 +00:00
changed cursor support exception to lwjglexception
This commit is contained in:
parent
65dba57d2c
commit
4869744cf1
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ public class Cursor {
|
|||
*/
|
||||
public Cursor(int width, int height, int xHotspot, int yHotspot, int numImages, IntBuffer images, IntBuffer delays) throws LWJGLException {
|
||||
if ((getCapabilities() & CURSOR_ONE_BIT_TRANSPARENCY) == 0)
|
||||
throw new IllegalStateException("Native cursors not supported");
|
||||
throw new LWJGLException("Native cursors not supported");
|
||||
BufferChecks.checkBuffer(images, width*height*numImages);
|
||||
if (!Mouse.isCreated())
|
||||
throw new IllegalStateException("Mouse must be created before creating cursor objects");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue