From 8597753b754252fc07c69fb7ea7b02d14a2c40bc Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 25 Feb 2022 08:02:18 +0000 Subject: [PATCH] steamcompmgr: Fix integer scaling when supersampling --- src/steamcompmgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 344005c..3ce8f9e 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -1185,7 +1185,7 @@ void MouseCursor::paint(win *window, win *fit, struct Composite_t *pComposite, currentScaleRatio = (XRatio < YRatio) ? XRatio : YRatio; currentScaleRatio = std::min(g_flMaxWindowScale, currentScaleRatio); currentScaleRatio *= outputScaleRatio; - if (g_bIntegerScale) + if (g_bIntegerScale && currentScaleRatio > 1.0f) currentScaleRatio = floor(currentScaleRatio); cursorOffsetX = (currentOutputWidth - sourceWidth * currentScaleRatio * globalScaleRatio) / 2.0f; @@ -1360,7 +1360,7 @@ paint_window(win *w, win *scaleW, struct Composite_t *pComposite, currentScaleRatio = (XRatio < YRatio) ? XRatio : YRatio; currentScaleRatio = std::min(g_flMaxWindowScale, currentScaleRatio); currentScaleRatio *= outputScaleRatio; - if (g_bIntegerScale) + if (g_bIntegerScale && currentScaleRatio > 1.0f) currentScaleRatio = floor(currentScaleRatio); currentScaleRatio *= globalScaleRatio;