a/android: Add warning when not getting refresh rate and returning 60hz [NFC]

This commit is contained in:
Jakob Bornecrantz 2023-07-18 11:40:47 +01:00
parent 416f031329
commit 9a17faa59d

View file

@ -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;
}