mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-20 15:10:34 +00:00
Add support for listing notch and notchless native resolution options
This commit is contained in:
@@ -1200,7 +1200,8 @@ 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::getNativeDesktopMode(displayIndex, &desktopMode)) {
|
||||
SDL_Rect safeArea;
|
||||
if (!StreamUtils::getNativeDesktopMode(displayIndex, &desktopMode, &safeArea)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user