summaryrefslogtreecommitdiffstats
path: root/api/gui/SkinUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/gui/SkinUtils.cpp')
-rw-r--r--api/gui/SkinUtils.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/api/gui/SkinUtils.cpp b/api/gui/SkinUtils.cpp
index 3950cbc0..9b6f63a4 100644
--- a/api/gui/SkinUtils.cpp
+++ b/api/gui/SkinUtils.cpp
@@ -1,4 +1,4 @@
-/* Copyright 2013-2018 MultiMC Contributors
+/* Copyright 2013-2019 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,19 +29,19 @@ namespace SkinUtils
*/
QPixmap getFaceFromCache(QString username, int height, int width)
{
- QFile fskin(ENV.metacache()
- ->resolveEntry("skins", username + ".png")
- ->getFullPath());
+ QFile fskin(ENV.metacache()
+ ->resolveEntry("skins", username + ".png")
+ ->getFullPath());
- if (fskin.exists())
- {
- QPixmap skin(fskin.fileName());
- if(!skin.isNull())
- {
- return skin.copy(8, 8, 8, 8).scaled(height, width, Qt::KeepAspectRatio);
- }
- }
+ if (fskin.exists())
+ {
+ QPixmap skin(fskin.fileName());
+ if(!skin.isNull())
+ {
+ return skin.copy(8, 8, 8, 8).scaled(height, width, Qt::KeepAspectRatio);
+ }
+ }
- return QPixmap();
+ return QPixmap();
}
}