From: <ma...@us...> - 2007-01-02 19:02:37
|
Revision: 2712 http://svn.sourceforge.net/java-game-lib/?rev=2712&view=rev Author: matzon Date: 2007-01-02 11:02:25 -0800 (Tue, 02 Jan 2007) Log Message: ----------- use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java Modified: trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java 2007-01-02 11:12:37 UTC (rev 2711) +++ trunk/LWJGL/src/java/org/lwjgl/test/input/HWCursorTest.java 2007-01-02 19:02:25 UTC (rev 2712) @@ -207,7 +207,7 @@ } cursorImages.flip(); cursorDelays.flip(); - cursor[2] = new Cursor(Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize(), Cursor.getMaxCursorSize()/2, Cursor.getMaxCursorSize()/2, cursorImageCount, cursorImages, cursorDelays); + cursor[2] = new Cursor(cursorWidth, cursorHeight, cursorWidth/2, cursorHeight/2, cursorImageCount, cursorImages, cursorDelays); // ---------------------------------- Mouse.setNativeCursor(cursor[0]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |