diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-05 13:15:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 13:15:14 -0500 |
commit | 8369fcd71ab46df07ca6eebcdf08761a9d52ede7 (patch) | |
tree | 1a223e324f31261ba10683c1c37e0efa24bba1be /src/yuzu/configuration | |
parent | 626916e9a48a9bbc5f09968d89d378891ffb3809 (diff) | |
parent | 5323d9f6b3cba683522d90fbd9f28b6e11b9348b (diff) |
Merge pull request #11969 from german77/profile
service: acc: Ensure proper profile size
Diffstat (limited to 'src/yuzu/configuration')
-rw-r--r-- | src/yuzu/configuration/configure_profile_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_profile_manager.cpp b/src/yuzu/configuration/configure_profile_manager.cpp index a47089988..6d2219bf5 100644 --- a/src/yuzu/configuration/configure_profile_manager.cpp +++ b/src/yuzu/configuration/configure_profile_manager.cpp @@ -306,10 +306,10 @@ void ConfigureProfileManager::SetUserImage() { return; } - // Some games crash when the profile image is too big. Resize any image bigger than 256x256 + // Profile image must be 256x256 QImage image(image_path); - if (image.width() > 256 || image.height() > 256) { - image = image.scaled(256, 256, Qt::KeepAspectRatio); + if (image.width() != 256 || image.height() != 256) { + image = image.scaled(256, 256, Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation); if (!image.save(image_path)) { QMessageBox::warning(this, tr("Error resizing user image"), tr("Unable to resize image")); |