From e2d34f72736556cec17437daab1eb084c99861c6 Mon Sep 17 00:00:00 2001 From: Mezone <20496112+Mez0ne@users.noreply.github.com> Date: Mon, 2 Dec 2024 23:05:50 +0800 Subject: [PATCH] fix bug in opgg_window again --- app/view/opgg_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/view/opgg_window.py b/app/view/opgg_window.py index 0d900c5..97bcd3c 100644 --- a/app/view/opgg_window.py +++ b/app/view/opgg_window.py @@ -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)