Fix native resolution detection on high DPI wayland systems

This commit is contained in:
Cameron Gutman 2022-08-16 00:25:49 -05:00
commit b0804ce048
4 changed files with 24 additions and 9 deletions

View file

@ -986,7 +986,7 @@ void Session::updateOptimalWindowDisplayMode()
// If this doesn't fit the selected resolution, use the native
// resolution of the panel (unscaled).
if (desktopMode.w < m_ActiveVideoWidth || desktopMode.h < m_ActiveVideoHeight) {
if (!StreamUtils::getRealDesktopMode(displayIndex, &desktopMode)) {
if (!StreamUtils::getNativeDesktopMode(displayIndex, &desktopMode)) {
return;
}
}