From: Matthias Schmidt Date: Thu, 16 Apr 2015 17:00:26 +0000 (+0200) Subject: Fix displaying retina avatars smaller than 128px X-Git-Tag: 2.1.4~69 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87e93fdc8d54ffc20835e5727baae3d694634a5e;p=GitHub%2FWoltLab%2FWCF.git Fix displaying retina avatars smaller than 128px --- 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; }