mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-12-01 10:15:22 +00:00
1 parent
d9a416aec3
commit
2599d23ee0
1 file changed
+2
-2
@@ -1384,8 +1384,8 @@ void Session::getWindowDimensions(int& x, int& y,
|
||||
// Use the usable display bounds if they are valid
|
||||
if (usableBounds.w != 0 &&
|
||||
WMUtils::hasDisplayUsableBounds() &&
|
||||
m_StreamConfig.width <= usableBounds.w &&
|
||||
m_StreamConfig.height <= usableBounds.h) {
|
||||
m_StreamConfig.width <= ((int)(usableBounds.w * 0.95f)) &&
|
||||
m_StreamConfig.height <= ((int)(usableBounds.h * 0.95f))) {
|
||||
// We fit pixel-perfect in the usable area, so don't scale at all
|
||||
width = m_StreamConfig.width;
|
||||
height = m_StreamConfig.height;
|
||||
|
||||
Reference in new issue
Block a user