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:
parent
62d604747e
commit
7497d14262
1 changed files with 2 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue