From aa0beb40d25211189c30d69be4c07d3c25dfe6e2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 17 Mar 2024 09:51:07 +1100 Subject: Fix MSVC C5055 warning in C++20 mode. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(deviceScaleFactor) / 100.f; } } return 1.f; -- cgit v1.2.3