Apply suggestions from code review

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: Alexandru Ionut Tripon <alexandru.tripon97@gmail.com>
This commit is contained in:
Alexandru Ionut Tripon
2025-02-21 11:32:30 +02:00
committed by GitHub
parent 6a2f5f071c
commit 12a4915420
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@
#include "FileSystem.h"
#include "Json.h"
QImage improveSkin(const QImage& skin)
static QImage improveSkin(const QImage& skin)
{
if (skin.size() == QSize(64, 32)) { // old format
QImage newSkin = QImage(QSize(64, 64), skin.format());
@@ -40,12 +40,12 @@ QImage improveSkin(const QImage& skin)
}
return skin;
}
QImage getSkin(const QString path)
static QImage getSkin(const QString path)
{
return improveSkin(QImage(path));
}
QImage generatePreviews(QImage texture, bool slim)
static QImage generatePreviews(QImage texture, bool slim)
{
QImage preview(36, 36, QImage::Format_ARGB32);
preview.fill(Qt::transparent);