Only fill the screen in windowed mode if the stream is larger than usable display area

This commit is contained in:
Cameron Gutman
2018-08-04 15:34:26 -07:00
parent f2ed3a8502
commit 1e8c2b179a

View File

@@ -475,6 +475,13 @@ void Session::getWindowDimensions(bool fullScreen,
width -= left + right;
height -= top + bottom;
// If the stream window can fit within the usable drawing area with 1:1
// scaling, do that rather than filling the screen.
if (m_StreamConfig.width < width && m_StreamConfig.height < height) {
width = m_StreamConfig.width;
height = m_StreamConfig.height;
}
}
}
else {