Only fill the screen in windowed mode if the stream is larger than usable display area
This commit is contained in:
parent
f2ed3a8502
commit
1e8c2b179a
1 changed files with 7 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue