Skip to content

Commit 47026a3

Browse files
committed
Fix scaling issue
1 parent b7da56a commit 47026a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ int main(int argc,
6161
airbag_init_fd(fd, crash_handled, EXECUTION_FILENAME);
6262
#endif
6363

64+
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
65+
6466
QApplication a(argc, argv);
6567
QCommandLineParser parser;
6668
parser.setApplicationDescription("JamesDSP for Linux");
@@ -89,7 +91,8 @@ int main(int argc,
8991

9092
QApplication::setQuitOnLastWindowClosed(false);
9193
MainWindow w(QString::fromLocal8Bit(exepath), parser.isSet(tray), parser.isSet(minst));
92-
w.setFixedSize(w.geometry().width(), w.geometry().height());
94+
95+
w.setFixedSize(w.geometry().width(), w.geometry().height());
9396
w.setGeometry(
9497
QStyle::alignedRect(
9598
Qt::LeftToRight,

0 commit comments

Comments
 (0)