Skip to content

Commit

Permalink
steamcompmgr: Fix repaint checking for fade-outs
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Dec 8, 2023
1 parent 89cf3b0 commit b7c828b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit b7c828b

Please sign in to comment.