summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/GameList/GameListModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt2/GameList/GameListModel.cpp')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameListModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
index f23ab586db..01fb41c176 100644
--- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
@@ -63,6 +63,8 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
// GameCube banners are 96x32, but Wii banners are 192x64.
// TODO: use custom banners from rom directory like DolphinWX?
QPixmap banner = game->GetBanner();
+ if (banner.isNull())
+ banner = Resources::GetMisc(Resources::BANNER_MISSING);
banner.setDevicePixelRatio(std::max(banner.width() / GAMECUBE_BANNER_SIZE.width(),
banner.height() / GAMECUBE_BANNER_SIZE.height()));
return banner;