mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-5238 do not reshape maximized window in AwtWindow::CheckWindowDPIChange()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user