diff --git a/corrscope/gui/view_mainwindow.py b/corrscope/gui/view_mainwindow.py index fdaa51e..dc3fc5d 100644 --- a/corrscope/gui/view_mainwindow.py +++ b/corrscope/gui/view_mainwindow.py @@ -52,7 +52,13 @@ class MainWindow(QWidget): left_tabs: "TabWidget" def setupUi(self, MainWindow: QMainWindow): - MainWindow.resize(1160, 0) + # Multiplying by DPI scale is necessary on both Windows and Linux, + # since MainWindow.resize() operates in physical pixels. + scale = MainWindow.logicalDpiX() / 96.0 + + width = 1280 + height = 0 + MainWindow.resize(width * scale, height * scale) s = LayoutStack(MainWindow)