mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
game_list: Add Qt SmoothTransformation to picture scaling
This commit is contained in:
parent
4f186de069
commit
4f183123f5
@ -68,7 +68,7 @@ public:
|
|||||||
if (!picture.loadFromData(picture_data.data(), static_cast<u32>(picture_data.size()))) {
|
if (!picture.loadFromData(picture_data.data(), static_cast<u32>(picture_data.size()))) {
|
||||||
picture = GetDefaultIcon(size);
|
picture = GetDefaultIcon(size);
|
||||||
}
|
}
|
||||||
picture = picture.scaled(size, size);
|
picture = picture.scaled(size, size, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||||
|
|
||||||
setData(picture, Qt::DecorationRole);
|
setData(picture, Qt::DecorationRole);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user