aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/mod/ResourcePack.h
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-06-25 12:26:54 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-06-25 12:26:54 +0300
commitef0752972ae64002a02e66e430165f3e93c09c53 (patch)
treebb4337a52c9fe3b0c063cb3b3af5e411826a8d90 /launcher/minecraft/mod/ResourcePack.h
parent3c9c39cb890252f94d0c50caa00de5439881d7f6 (diff)
parentbcf45c74a1b0b3389c05927637bf8aa95b8e43cf (diff)
downloadPrismLauncher-ef0752972ae64002a02e66e430165f3e93c09c53.tar.gz
PrismLauncher-ef0752972ae64002a02e66e430165f3e93c09c53.tar.bz2
PrismLauncher-ef0752972ae64002a02e66e430165f3e93c09c53.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into export
Diffstat (limited to 'launcher/minecraft/mod/ResourcePack.h')
-rw-r--r--launcher/minecraft/mod/ResourcePack.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/ResourcePack.h b/launcher/minecraft/mod/ResourcePack.h
index 7cb414d8..da354bc1 100644
--- a/launcher/minecraft/mod/ResourcePack.h
+++ b/launcher/minecraft/mod/ResourcePack.h
@@ -31,7 +31,7 @@ class ResourcePack : public Resource {
[[nodiscard]] QString description() const { return m_description; }
/** Gets the image of the resource 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 setPackFormat(int new_format_id);
@@ -40,7 +40,7 @@ class ResourcePack : public Resource {
void setDescription(QString new_description);
/** Thread-safe. */
- void setImage(QImage new_image);
+ void setImage(QImage new_image) const;
bool valid() const override;
@@ -67,5 +67,5 @@ class ResourcePack : public Resource {
struct {
QPixmapCache::Key key;
bool was_ever_used = false;
- } m_pack_image_cache_key;
+ } mutable m_pack_image_cache_key;
};