Display (Linux): fix preferred resolution detection for wayland

This commit is contained in:
Carter Li authored and 李通洲 committed 2024-11-20 21:38:18 +08:00
1 parent 8b62ad72f7
commit a567268ca1
2 files changed
+2 -2

No files matched your search

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