Fix issue with changing monitors

This commit is contained in:
ivan100sic
2020-10-23 15:32:51 +02:00
committed by Ivan Stosic
parent 1390bf271f
commit 3b1a70c10a

View File

@@ -399,7 +399,7 @@ ZoneWindow::ClearSelectedZones() noexcept
if (m_highlightZone.size())
{
m_highlightZone.clear();
InvalidateRect(m_window.get(), nullptr, true);
m_zoneWindowDrawing->DrawActiveZoneSet(m_activeZoneSet->GetZones(), m_highlightZone, m_host);
}
}
@@ -526,7 +526,7 @@ void ZoneWindow::OnKeyUp(WPARAM wparam) noexcept
if ((wparam >= '0') && (wparam <= '9'))
{
CycleActiveZoneSetInternal(static_cast<DWORD>(wparam), Trace::ZoneWindow::InputMode::Keyboard);
InvalidateRect(m_window.get(), nullptr, true);
m_zoneWindowDrawing->DrawActiveZoneSet(m_activeZoneSet->GetZones(), m_highlightZone, m_host);
}
}