From 2eccb0f4cea1d82a231d8ba57730da76c1d34dcd Mon Sep 17 00:00:00 2001 From: Gregory Pierce Date: Sat, 10 May 2003 21:49:30 +0000 Subject: [PATCH] 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. --- src/native/macosx/org_lwjgl_Display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/macosx/org_lwjgl_Display.cpp b/src/native/macosx/org_lwjgl_Display.cpp index dae2457c..10b286ae 100644 --- a/src/native/macosx/org_lwjgl_Display.cpp +++ b/src/native/macosx/org_lwjgl_Display.cpp @@ -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, "", "(IIII)V");