aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/TexturePack.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 11:28:19 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-05 11:28:19 -0700
commitee94be624eb11a12d4eb3e07c32ea4734b3ba6dc (patch)
tree084ef5c5914fad5be22d7d6e1355bb214cb8a8f0 /launcher/minecraft/mod/TexturePack.cpp
parent2fe3dc5960a6cc231891a91dd68fcc8b159e9365 (diff)
downloadPrismLauncher-ee94be624eb11a12d4eb3e07c32ea4734b3ba6dc.tar.gz
PrismLauncher-ee94be624eb11a12d4eb3e07c32ea4734b3ba6dc.tar.bz2
PrismLauncher-ee94be624eb11a12d4eb3e07c32ea4734b3ba6dc.zip
use 32x32 images for image column
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/minecraft/mod/TexturePack.cpp')
-rw-r--r--launcher/minecraft/mod/TexturePack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/minecraft/mod/TexturePack.cpp b/launcher/minecraft/mod/TexturePack.cpp
index 8ff1e852..c7a50a97 100644
--- a/launcher/minecraft/mod/TexturePack.cpp
+++ b/launcher/minecraft/mod/TexturePack.cpp
@@ -44,7 +44,7 @@ void TexturePack::setImage(QImage new_image) const
PixmapCache::remove(m_pack_image_cache_key.key);
// scale the image to avoid flooding the pixmapcache
- auto pixmap = QPixmap::fromImage(new_image.scaled(QSize(128, 128), Qt::AspectRatioMode::KeepAspectRatioByExpanding));
+ auto pixmap = QPixmap::fromImage(new_image.scaled({64, 64}, Qt::AspectRatioMode::KeepAspectRatioByExpanding));
m_pack_image_cache_key.key = PixmapCache::insert(pixmap);
m_pack_image_cache_key.was_ever_used = true;