diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 10:12:29 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-25 10:12:29 +0300 |
commit | 54d7477679d4be05ce69dfe7d3ff21b0de46e8af (patch) | |
tree | 8a3eb84a1d352ed4c57e7f06cd9772f1de08e384 /launcher/minecraft/mod/TexturePack.h | |
parent | ba609f3600e17704f358b28dd3d5ee14319cc98c (diff) | |
parent | bcf45c74a1b0b3389c05927637bf8aa95b8e43cf (diff) | |
download | PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.gz PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.tar.bz2 PrismLauncher-54d7477679d4be05ce69dfe7d3ff21b0de46e8af.zip |
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into visit_mod_page
Diffstat (limited to 'launcher/minecraft/mod/TexturePack.h')
-rw-r--r-- | launcher/minecraft/mod/TexturePack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/TexturePack.h b/launcher/minecraft/mod/TexturePack.h index 81bd5c69..57700565 100644 --- a/launcher/minecraft/mod/TexturePack.h +++ b/launcher/minecraft/mod/TexturePack.h @@ -40,13 +40,13 @@ class TexturePack : public Resource { [[nodiscard]] QString description() const { return m_description; } /** Gets the image of the texture pack, converted to a QPixmap for drawing, and scaled to size. */ - [[nodiscard]] QPixmap image(QSize size); + [[nodiscard]] QPixmap image(QSize size, Qt::AspectRatioMode mode = Qt::AspectRatioMode::IgnoreAspectRatio) const; /** Thread-safe. */ void setDescription(QString new_description); /** Thread-safe. */ - void setImage(QImage new_image); + void setImage(QImage new_image) const; bool valid() const override; @@ -65,5 +65,5 @@ class TexturePack : public Resource { struct { QPixmapCache::Key key; bool was_ever_used = false; - } m_pack_image_cache_key; + } mutable m_pack_image_cache_key; }; |