From 0e2fb5de36fe8b15f6f9e0c7ce384fe7a36d2649 Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Sat, 9 Nov 2024 21:00:11 +0000 Subject: [PATCH] [Fix] Fix more ambiguous calls. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22125 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- mptrack/HighDPISupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mptrack/HighDPISupport.cpp b/mptrack/HighDPISupport.cpp index e4e2f39f36..175208324c 100644 --- a/mptrack/HighDPISupport.cpp +++ b/mptrack/HighDPISupport.cpp @@ -124,7 +124,7 @@ int HighDPISupport::GetSystemMetrics(int index, uint32 dpi) int HighDPISupport::GetSystemMetrics(int index, HWND hwnd) { if(auto instance = GetHighDPISupportData(); instance->m_GetSystemMetricsForDpi) - return instance->m_GetSystemMetricsForDpi(index, GetDpiForWindow(hwnd)); + return instance->m_GetSystemMetricsForDpi(index, HighDPISupport::GetDpiForWindow(hwnd)); else return ::GetSystemMetrics(index); } @@ -142,7 +142,7 @@ BOOL HighDPISupport::SystemParametersInfo(UINT uiAction, UINT uiParam, void *pvP BOOL HighDPISupport::SystemParametersInfo(UINT uiAction, UINT uiParam, void *pvParam, UINT fWinIni, HWND hwnd) { if(auto instance = GetHighDPISupportData(); instance->m_SystemParametersInfoForDpi) - return instance->m_SystemParametersInfoForDpi(uiAction, uiParam, pvParam, fWinIni, GetDpiForWindow(hwnd)); + return instance->m_SystemParametersInfoForDpi(uiAction, uiParam, pvParam, fWinIni, HighDPISupport::GetDpiForWindow(hwnd)); else return ::SystemParametersInfo(uiAction, uiParam, pvParam, fWinIni); }