Remove the apparently unnecessary check for DPI really changing

We seem to be only getting WM_DPICHANGED if the DPI did really change,
so remove the check for this.

This commit is best viewed ignoring whitespace-only changes.
This commit is contained in:
Vadim Zeitlin 2022-06-24 00:29:55 +01:00
parent 62d604747e
commit 7497d14262

View file

@ -270,11 +270,8 @@ bool wxNonOwnedWindow::HandleDPIChange(const wxSize& newDPI, const wxRect& newRe
return false;
}
if ( newDPI != m_activeDPI )
{
MSWUpdateOnDPIChange(m_activeDPI, newDPI);
m_activeDPI = newDPI;
}
MSWUpdateOnDPIChange(m_activeDPI, newDPI);
m_activeDPI = newDPI;
SetSize(newRect);