aboutsummaryrefslogtreecommitdiff
path: root/launcher/SkinUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/SkinUtils.cpp')
-rw-r--r--launcher/SkinUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/SkinUtils.cpp b/launcher/SkinUtils.cpp
index 20d3b52e..989114ad 100644
--- a/launcher/SkinUtils.cpp
+++ b/launcher/SkinUtils.cpp
@@ -35,6 +35,11 @@ QPixmap getFaceFromCache(QString username, int height, int width)
QPixmap skinTexture(fskin.fileName());
if (!skinTexture.isNull()) {
QPixmap skin = QPixmap(8, 8);
+#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
+ skin.fill(QColorConstants::Transparent);
+#else
+ skin.fill(QColor(0, 0, 0, 0));
+#endif
QPainter painter(&skin);
painter.drawPixmap(0, 0, skinTexture.copy(8, 8, 8, 8));
painter.drawPixmap(0, 0, skinTexture.copy(40, 8, 8, 8));