mirror of
https://github.com/yawut/SDL.git
synced 2026-08-23 01:05:09 -05:00
Fixed bug 2816 - [patch] Android: Expose screen refresh rate
Jonas Kulla Display::getRefreshRate() is available on all API levels.
This commit is contained in:
@@ -143,9 +143,9 @@ JNIEXPORT void JNICALL SDL_Android_Init(JNIEnv* mEnv, jclass cls)
|
||||
/* Resize */
|
||||
JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeResize(
|
||||
JNIEnv* env, jclass jcls,
|
||||
jint width, jint height, jint format)
|
||||
jint width, jint height, jint format, jfloat rate)
|
||||
{
|
||||
Android_SetScreenResolution(width, height, format);
|
||||
Android_SetScreenResolution(width, height, format, rate);
|
||||
}
|
||||
|
||||
/* Paddown */
|
||||
|
||||
Reference in New Issue
Block a user