Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Dec 2, 2024
2 parents 545fb3b + 4e59241 commit 99c5ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/view/opgg_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def showEvent(self, a0: QShowEvent) -> None:
dpi = self.devicePixelRatioF()
x = pos.right()
y = pos.center().y() - size.height() * dpi / 2
rect = QRect(x / dpi, y / dpi, size.width(), size.height())
rect = QRect(x // dpi, y // dpi, size.width(), size.height())

# 如果超出右边界,则直接 return 了
screenWidth = win32api.GetSystemMetrics(0)
Expand Down

0 comments on commit 99c5ff9

Please sign in to comment.