Skip to content

Commit

Permalink
[Fix] Fix ambiguous call when recent enough Windows SDK is used.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22124 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 9, 2024
1 parent 856428f commit e43f7a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mptrack/HighDPISupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};

Expand Down

0 comments on commit e43f7a4

Please sign in to comment.