From 1e8c2b179a2529607f8287071e244e3efa10841d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 4 Aug 2018 15:34:26 -0700 Subject: [PATCH] Only fill the screen in windowed mode if the stream is larger than usable display area --- app/streaming/session.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index ecd92bc7..bba81280 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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 {