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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from Mez0ne/main
Browse files Browse the repository at this point in the history
fix bug in opgg_window
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
@@ -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)

0 comments on commit 4e59241

Please sign in to comment.