Skip to content

Commit

Permalink
Fix blanking vim on a settings update
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 20, 2020
1 parent f56a9b5 commit 4a32b33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/dx/DxRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,12 @@ try
D2D1_COLOR_F nothing = { 0 };

// If the entire thing is invalid, just use one big clear operation.
if (_invalidMap.all())
// Don't use _invalidMap.all() here. That method checks if the union of the
// invalid areas of the map is the entire frame. However, there's a good
// chance that _not_ all the cells of the frame are actually invalid. If we
// used all() here, we'd clear the entire frame, but not actually paint all
// the cells again.
if (_firstFrame)
{
_d2dRenderTarget->Clear(nothing);
}
Expand Down

1 comment on commit 4a32b33

@github-actions

This comment was marked as resolved.

Please sign in to comment.