Fix cursor jumping after Mouse.setGrabbed()

This commit is contained in:
Elias Naur 2005-04-28 09:57:45 +00:00
parent c8d5fe296b
commit 0b9d221f9c
2 changed files with 3 additions and 3 deletions

View file

@ -214,9 +214,9 @@ public class Mouse {
height = Display.getDisplayMode().getHeight();
x = width / 2;
y = height / 2;
readBuffer.clear();
readBuffer.position(readBuffer.limit());
if (!isGrabbed() && (Cursor.getCapabilities() & Cursor.CURSOR_ONE_BIT_TRANSPARENCY) != 0)
setCursorPosition(x, y);
setCursorPosition(x, y);
}
/**