mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 21:26:36 +00:00
a/android: Add warning when not getting refresh rate and returning 60hz [NFC]
This commit is contained in:
parent
416f031329
commit
9a17faa59d
|
@ -183,6 +183,7 @@ android_custom_surface_get_display_metrics(struct _JavaVM *vm,
|
|||
//! @todo implement non-deprecated codepath for api 30+
|
||||
float displayRefreshRate = MonadoView::getDisplayRefreshRate(Context((jobject)context));
|
||||
if (displayRefreshRate == 0.0) {
|
||||
U_LOG_W("Could not get refresh rate, returning 60hz");
|
||||
displayRefreshRate = 60.0f;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue