Display (Linux): fix preferred resolution detection for wayland

This commit is contained in:
Carter Li
2024-11-20 21:34:17 +08:00
committed by 李通洲
parent 8b62ad72f7
commit a567268ca1
2 changed files with 2 additions and 2 deletions
@@ -69,7 +69,7 @@ static void waylandKdeCurrentModeListener(void* data, FF_MAYBE_UNUSED struct kde
wldata->refreshRate = m->refreshRate;
if (++set == 2) break;
}
else if (m->preferred)
if (m->preferred)
{
wldata->preferredWidth = m->width;
wldata->preferredHeight = m->height;
@@ -78,7 +78,7 @@ static void waylandZwlrCurrentModeListener(void* data, FF_MAYBE_UNUSED struct zw
wldata->refreshRate = m->refreshRate;
if (++set == 2) break;
}
else if (m->preferred)
if (m->preferred)
{
wldata->preferredWidth = m->width;
wldata->preferredHeight = m->height;