use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow

This commit is contained in:
Brian Matzon 2007-01-02 19:02:25 +00:00
parent ede23fc9a3
commit de0a724da7

View file

@ -207,7 +207,7 @@ public class HWCursorTest {
}
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]);