Skip to content

Commit

Permalink
fix: scale ratio on dpi change
Browse files Browse the repository at this point in the history
  • Loading branch information
letrungdo committed Sep 27, 2024
1 parent 7f47e58 commit 54b6f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions windows/window_manager_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd,
if (message == WM_DPICHANGED) {
window_manager->pixel_ratio_ =
(float)LOWORD(wParam) / USER_DEFAULT_SCREEN_DPI;
window_manager->ForceChildRefresh();
}

if (wParam && message == WM_NCCALCSIZE) {
Expand Down

0 comments on commit 54b6f98

Please sign in to comment.