changed cursor support exception to lwjglexception

This commit is contained in:
Brian Matzon 2006-04-30 21:09:16 +00:00
parent 65dba57d2c
commit 4869744cf1
1 changed files with 1 additions and 1 deletions

View File

@ -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");