Skip to content

Commit

Permalink
Merge pull request #544 from Mez0ne/main
Browse files Browse the repository at this point in the history
fix bug in opgg_window
  • Loading branch information
Zzaphkiel authored Dec 2, 2024
2 parents e6f1b42 + 20f1e24 commit 4e59241
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 @@ -501,7 +501,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 4e59241

Please sign in to comment.