Fixed linux mouse creation

This commit is contained in:
Elias Naur 2003-10-20 12:49:50 +00:00
parent b6a13f736b
commit b6390ef976
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate
{ {
int i; int i;
current_z = last_z = 0; current_z = last_z = 0;
doWarpPointer();
for (i = 0; i < NUM_BUTTONS; i++) for (i = 0; i < NUM_BUTTONS; i++)
buttons[i] = 0; buttons[i] = 0;
if (!blankCursor()) { if (!blankCursor()) {
@ -323,6 +322,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nCreate
updateGrab(); updateGrab();
initEventQueue(&event_queue); initEventQueue(&event_queue);
loadXcursor(); loadXcursor();
doWarpPointer();
} }
JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nDestroy