diff --git a/src/renderer/base/renderer.cpp b/src/renderer/base/renderer.cpp index 7ceb0840b8c..2424515b991 100644 --- a/src/renderer/base/renderer.cpp +++ b/src/renderer/base/renderer.cpp @@ -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)