From 2e892c5165fe4453f19b0ef38d0187390553e7f3 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 14 May 2022 03:11:49 +0300 Subject: [PATCH] fix dimensions pass --- library/icon.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/icon.php b/library/icon.php index 35ac52a..3daeddc 100755 --- a/library/icon.php +++ b/library/icon.php @@ -83,12 +83,12 @@ final class Icon { imagearc($resized, $radius-1, $radius-1, $radius*2, $radius*2, 180, 270, $bg); imagefilltoborder($resized, 0, 0, $bg, $bg); - imagearc($resized, $width-$radius, $radius-1, $radius*2, $radius*2, 270, 0, $bg); - imagefilltoborder($resized, $width-1, 0, $bg, $bg); - imagearc($resized, $radius-1, $height-$radius, $radius*2, $radius*2, 90, 180, $bg); - imagefilltoborder($resized, 0, $height-1, $bg, $bg); - imagearc($resized, $width-$radius, $height-$radius, $radius*2, $radius*2, 0, 90, $bg); - imagefilltoborder($resized, $width-1, $height-1, $bg, $bg); + imagearc($resized, $this->_width-$radius, $radius-1, $radius*2, $radius*2, 270, 0, $bg); + imagefilltoborder($resized, $this->_width-1, 0, $bg, $bg); + imagearc($resized, $radius-1, $this->_height-$radius, $radius*2, $radius*2, 90, 180, $bg); + imagefilltoborder($resized, 0, $this->_height-1, $bg, $bg); + imagearc($resized, $this->_width-$radius, $this->_height-$radius, $radius*2, $radius*2, 0, 90, $bg); + imagefilltoborder($resized, $this->_width-1, $this->_height-1, $bg, $bg); imagecolortransparent($resized, $bg); }