Change to use the actual refresh rate from the display in the init call instead of setting it to 60. It doesn't really matter since OSX could care less, but for others maintaining the port, they may want code that looks the same.

This commit is contained in:
Gregory Pierce 2003-05-10 21:49:30 +00:00
parent aa13639386
commit 2eccb0f4ce
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Display_init
int width = CGDisplayPixelsWide( kCGDirectMainDisplay );
int height = CGDisplayPixelsHigh( kCGDirectMainDisplay );
int bpp = CGDisplayBitsPerPixel( kCGDirectMainDisplay );
int freq = 60;
int freq = (int)_getDictDouble (CGDisplayCurrentMode ( kCGDirectMainDisplay ), kCGDisplayRefreshRate);
jclass jclass_DisplayMode = env->FindClass("org/lwjgl/DisplayMode");
jmethodID ctor = env->GetMethodID(jclass_DisplayMode, "<init>", "(IIII)V");