From 2157920583fb7bf2ecb7a9fa7a52e0e80843441e Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 7 Dec 2023 21:23:42 +0000 Subject: [PATCH] steamcompmgr: Fix repaint checking for fade-outs --- src/steamcompmgr.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/steamcompmgr.cpp b/src/steamcompmgr.cpp index 33fa43438..6add8f427 100644 --- a/src/steamcompmgr.cpp +++ b/src/steamcompmgr.cpp @@ -8021,6 +8021,11 @@ steamcompmgr_main(int argc, char **argv) g_upscaleFilter = g_wantedUpscaleFilter; } + // If we're in the middle of a fade, then keep us + // as needing a repaint. + if ( is_fading_out() ) + hasRepaint = true; + static int nIgnoredOverlayRepaints = 0; const bool bVRR = drm_get_vrr_in_use( &g_DRM ); @@ -8073,13 +8078,6 @@ steamcompmgr_main(int argc, char **argv) hasRepaint = false; hasRepaintNonBasePlane = false; nIgnoredOverlayRepaints = 0; - - // If we're in the middle of a fade, pump an event into the loop to - // make sure we keep pushing frames even if the app isn't updating. - if ( is_fading_out() ) - { - nudge_steamcompmgr(); - } } if ( vblank )