diff options
author | Neil <nyamatongwe@gmail.com> | 2024-03-17 09:51:07 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-03-17 09:51:07 +1100 |
commit | aa0beb40d25211189c30d69be4c07d3c25dfe6e2 (patch) | |
tree | 3a995d3b037544a68c5914fb8aa20423ca12137f /win32 | |
parent | 0622821ceebac40eb38d7de03c293be03c2702a1 (diff) | |
download | scintilla-mirror-aa0beb40d25211189c30d69be4c07d3c25dfe6e2.tar.gz |
Fix MSVC C5055 warning in C++20 mode.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/PlatWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 634430ab5..91194c4c5 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -405,7 +405,7 @@ float GetDeviceScaleFactorWhenGdiScalingActive(HWND hWnd) noexcept { const HMONITOR hMonitor = MonitorFromWindowHandleScaling(hRootWnd); DEVICE_SCALE_FACTOR deviceScaleFactor; if (S_OK == fnGetScaleFactorForMonitor(hMonitor, &deviceScaleFactor)) - return deviceScaleFactor / 100.f; + return static_cast<int>(deviceScaleFactor) / 100.f; } } return 1.f; |