diff options
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index dc53e55756..3312394dda 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -261,8 +261,7 @@ bool GameListItem::ReadPNGBanner(const std::string& path) if (!File::Exists(path)) return false; - wxImage image; - image.LoadFile(StrToWxStr(path), wxBITMAP_TYPE_PNG); + wxImage image(StrToWxStr(path), wxBITMAP_TYPE_PNG); m_Bitmap = ScaleBanner(&image); return true; } |
