From e43f7a466961aea165cc402380675914f3491ed9 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Sat, 9 Nov 2024 19:40:34 +0000 Subject: [PATCH] [Fix] Fix ambiguous call when recent enough Windows SDK is used. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22124 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- mptrack/HighDPISupport.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mptrack/HighDPISupport.h b/mptrack/HighDPISupport.h index b85b1922eab..47a7b091fb1 100644 --- a/mptrack/HighDPISupport.h +++ b/mptrack/HighDPISupport.h @@ -44,13 +44,13 @@ namespace HighDPISupport // Applies DPI scaling factor to some given size MPT_FORCEINLINE int ScalePixels(int pixels, HWND hwnd) { - return MulDiv(pixels, GetDpiForWindow(hwnd), 96); + return MulDiv(pixels, HighDPISupport::GetDpiForWindow(hwnd), 96); } // Removes DPI scaling factor from some given size MPT_FORCEINLINE int ScalePixelsInv(int pixels, HWND hwnd) { - return MulDiv(pixels, 96, GetDpiForWindow(hwnd)); + return MulDiv(pixels, 96, HighDPISupport::GetDpiForWindow(hwnd)); } };