Skip to content

Commit

Permalink
Fixed DPI scaling under Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrettin committed Feb 25, 2024
1 parent 74e4103 commit 2ec6b68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stratagus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ int main(int argc, char **argv)
try {
qInstallMessageHandler(log::log_qt_message);

#ifdef Q_OS_WINDOWS
qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
#endif

QApplication app(argc, argv);
app.setApplicationName(NAME);
app.setApplicationVersion(VERSION);
Expand Down

0 comments on commit 2ec6b68

Please sign in to comment.