Skip to content

Commit

Permalink
[Fix] Fix more ambiguous calls.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22125 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 9, 2024
1 parent e43f7a4 commit 0e2fb5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mptrack/HighDPISupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 0e2fb5d

Please sign in to comment.