From 3c23a9afc9e5dab45f05372fd1ac5b93f07b37be Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 17 Nov 2014 20:11:34 -0500 Subject: WxUtils: Get rid of GetCurrentBitmapLogicalScale wx now provides the means to query this. --- Source/Core/DolphinWX/ISOFile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/ISOFile.cpp') diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 1a8208c311..deb6df8c8c 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -8,11 +8,13 @@ #include #include #include +#include #include #include #include #include #include +#include #include "Common/ChunkFile.h" #include "Common/CommonPaths.h" @@ -131,7 +133,7 @@ GameListItem::GameListItem(const std::string& _rFileName) if (!m_pImage.empty()) { wxImage Image(m_ImageWidth, m_ImageHeight, &m_pImage[0], true); - double Scale = WxUtils::GetCurrentBitmapLogicalScale(); + double Scale = wxTheApp->GetTopWindow()->GetContentScaleFactor(); // Note: This uses nearest neighbor, which subjectively looks a lot // better for GC banners than smooths caling. Image.Rescale(DVD_BANNER_WIDTH * Scale, DVD_BANNER_HEIGHT * Scale); -- cgit v1.2.3