Skip to content

Commit

Permalink
修复 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Aug 7, 2023
1 parent a806458 commit 9b2ec12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/champion_icon_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def paintEvent(self, event) -> None:
self.height() + self.overscaled,
Qt.AspectRatioMode.KeepAspectRatio,
Qt.TransformationMode.SmoothTransformation)
image.scroll(-self.overscaled / 2, -self.overscaled / 2, image.rect())
image.scroll(-self.overscaled // 2, -
self.overscaled // 2, image.rect())

path = QPainterPath()
path.addEllipse(0, 0, self.width(), self.height())
Expand All @@ -37,4 +38,4 @@ def paintEvent(self, event) -> None:
QPen(QColor(120, 90, 40), self.borderWidth, Qt.SolidLine))
painter.drawEllipse(0, 0, self.width(), self.height())

return super().paintEvent(event)
return super().paintEvent(event)

0 comments on commit 9b2ec12

Please sign in to comment.