From 4094c4ed7d217e84d44d64ef73bda6283d8201cb Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 8 Nov 2004 12:11:42 +0000 Subject: [PATCH] *** empty log message *** --- src/native/linux/org_lwjgl_input_Mouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/native/linux/org_lwjgl_input_Mouse.c b/src/native/linux/org_lwjgl_input_Mouse.c index fa8e0558..93dd9506 100644 --- a/src/native/linux/org_lwjgl_input_Mouse.c +++ b/src/native/linux/org_lwjgl_input_Mouse.c @@ -53,6 +53,8 @@ #define NUM_BUTTONS 3 +#define EVENT_SIZE 5 + #define POINTER_WARP_BORDER 10 // scale the mouse wheel according to win32 #define WHEEL_SCALE 120 @@ -241,6 +243,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_LinuxDisplay_getButtonCount(JNIEnv static void resetCursorToCenter(void) { resetCursor(getWindowWidth()/2, transformY(getWindowHeight()/2)); + initEventQueue(&event_queue, EVENT_SIZE); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_createMouse @@ -264,7 +267,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_createMouse pointer_grabbed = false; buffer_enabled = false; updatePointerGrab(); - initEventQueue(&event_queue, 5); + initEventQueue(&event_queue, EVENT_SIZE); } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_destroyMouse