Add support for listing notch and notchless native resolution options
This commit is contained in:
parent
ed68f920f1
commit
85a9f85c54
6 changed files with 88 additions and 33 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue