summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ISOFile.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-11-17 20:55:14 -0500
committerLioncash <mathew1800@gmail.com>2014-11-17 20:55:14 -0500
commitf7d194361574c8b30800b90aba6eb360cc7e6893 (patch)
tree8fc53ab9b169b4e99419f16f85db5165cdd15c93 /Source/Core/DolphinWX/ISOFile.cpp
parent2affe2519129834cfa26d3a150c9620a76543388 (diff)
parent3c23a9afc9e5dab45f05372fd1ac5b93f07b37be (diff)
Merge pull request #1570 from lioncash/scale
WxUtils: Get rid of GetCurrentBitmapLogicalScale
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
-rw-r--r--Source/Core/DolphinWX/ISOFile.cpp4
1 files changed, 3 insertions, 1 deletions
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 <memory>
#include <string>
#include <vector>
+#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/filefn.h>
#include <wx/gdicmn.h>
#include <wx/image.h>
#include <wx/string.h>
+#include <wx/window.h>
#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);