JBR-5238 do not reshape maximized window in AwtWindow::CheckWindowDPIChange()

This commit is contained in:
Nikita Gubarkov
2023-02-01 16:09:04 +02:00
committed by jbrbot
parent bf47a26bd5
commit 133f2ea840

View File

@@ -2331,7 +2331,7 @@ void AwtWindow::CheckWindowDPIChange() {
if (prevScaleRec.screen != -1 && prevScaleRec.screen != m_screenNum) {
Devices::InstanceAccess devices;
AwtWin32GraphicsDevice *device = devices->GetDevice(m_screenNum);
if (device) {
if (device && !::IsZoomed(GetHWnd())) {
if (prevScaleRec.scaleX != device->GetScaleX()
|| prevScaleRec.scaleY != device->GetScaleY()) {
RECT rect;