Skip to content

Commit 5cf3bb4

Browse files
authored
Fix map canvas refresh when moving app window (#4488)
1 parent 553807d commit 5cf3bb4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/map/inputmapcanvasmap.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ void InputMapCanvasMap::onScreenChanged( QScreen *screen )
269269
mMapSettings->setDevicePixelRatio( screen->devicePixelRatio() );
270270
}
271271
mMapSettings->setOutputDpi( screen->physicalDotsPerInch() );
272+
// Re-apply logical size so setOutputSize re-scales it with the new DPR
273+
mMapSettings->setOutputSize( boundingRect().size().toSize() );
274+
refresh();
272275
}
273276
}
274277

0 commit comments

Comments
 (0)