Skip to content

Commit

Permalink
Fix a crash when resizind conhost in Debug
Browse files Browse the repository at this point in the history
Don't clamp here, it's unnecessary. See notes in #12917 (comment)

Closes #12917
  • Loading branch information
zadjii-msft committed Apr 29, 2022
1 parent a7d2885 commit 0a8b3e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/renderer/base/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,7 @@ void Renderer::TriggerRedrawCursor(const COORD* const pcoord)
// The region is clamped within the viewport boundaries and we only
// trigger a redraw if the region is not empty.
auto view = _pData->GetViewport();
cursorView = view.Clamp(cursorView);

if (cursorView.IsValid())
if (view.IsInBounds(cursorView))
{
const auto updateRect = view.ConvertToOrigin(cursorView).ToExclusive();
FOREACH_ENGINE(pEngine)
Expand Down

0 comments on commit 0a8b3e1

Please sign in to comment.