mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
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:
parent
aa13639386
commit
2eccb0f4ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue