Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit

Permalink
Merge pull request #545 from Mez0ne/main
Browse files Browse the repository at this point in the history
fix bug in opgg_window again
  • Loading branch information
Zzaphkiel authored Dec 3, 2024
2 parents 99c5ff9 + e2d34f7 commit f8a5860
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( int(x / dpi), int(y / dpi), size.width(), size.height())

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

0 comments on commit f8a5860

Please sign in to comment.