From 87e93fdc8d54ffc20835e5727baae3d694634a5e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 16 Apr 2015 19:00:26 +0200 Subject: [PATCH] Fix displaying retina avatars smaller than 128px --- .../install/files/lib/data/user/avatar/UserAvatar.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php index 17b7b66e2b..05f232297c 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/UserAvatar.class.php @@ -130,7 +130,9 @@ class UserAvatar extends DatabaseObject implements IUserAvatar { case 64: case 96: - $retinaSize = 128; + if ($this->size >= 128 && $this->height >= 128) { + $retinaSize = 128; + } break; } -- 2.20.1