Skip to content

Commit

Permalink
fix: scale ratio on dpi change (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
letrungdo authored Oct 27, 2024
1 parent 42dcf64 commit 32bf6ab
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 @@ -143,6 +143,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 32bf6ab

Please sign in to comment.