Skip to content

Commit 32bf6ab

Browse files
authored
fix: scale ratio on dpi change (leanflutter#496)
1 parent 42dcf64 commit 32bf6ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

windows/window_manager_plugin.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd,
143143
if (message == WM_DPICHANGED) {
144144
window_manager->pixel_ratio_ =
145145
(float)LOWORD(wParam) / USER_DEFAULT_SCREEN_DPI;
146+
window_manager->ForceChildRefresh();
146147
}
147148

148149
if (wParam && message == WM_NCCALCSIZE) {

0 commit comments

Comments
 (0)