Try to return a better minimum cursor size

This commit is contained in:
Elias Naur 2003-06-08 14:30:53 +00:00
parent 7cb8a93fb1
commit 34aeff1757
1 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor
JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nGetMinCursorSize
(JNIEnv *env, jclass clazz)
{
return 1;
unsigned int width_return = 0;
unsigned int height_return = 0;
XQueryBestCursor(getCurrentDisplay(), getCurrentWindow(), 1, 1, &width_return, &height_return);
return width_return > height_return ? height_return : width_return;
}
/*