diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-11 00:15:06 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-11 00:19:44 +0200 |
commit | 8eb97706b869b2c07ac915600f41345c7fdc6479 (patch) | |
tree | 0d077fd2f4a58e492c1a42b91c58e26fc14ecce9 | |
parent | gt/game_list: Use std::array in GameListItemPath's data() function (diff) | |
download | yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar.gz yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar.bz2 yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar.lz yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar.xz yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.tar.zst yuzu-8eb97706b869b2c07ac915600f41345c7fdc6479.zip |
-rw-r--r-- | src/yuzu/game_list_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index 039c7dc67..8fe5e8b80 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -40,7 +40,6 @@ public: * If this class receives valid SMDH data, it will also display game icons and titles. */ class GameListItemPath : public GameListItem { - public: static const int FullPathRole = Qt::UserRole + 1; static const int TitleRole = Qt::UserRole + 2; @@ -55,11 +54,12 @@ public: setData(qulonglong(program_id), ProgramIdRole); setData(game_type, FileTypeRole); + const u32 size = UISettings::values.icon_size; + QPixmap picture; - u32 size = UISettings::values.icon_size; - if (!picture.loadFromData(picture_data.data(), picture_data.size())) + if (!picture.loadFromData(picture_data.data(), static_cast<u32>(picture_data.size()))) { picture = GetDefaultIcon(size); - + } picture = picture.scaled(size, size); setData(picture, Qt::DecorationRole); |