Skip to content

Commit

Permalink
Avoid huge UI in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-spataru committed Apr 7, 2021
1 parent 96a3368 commit 759d2c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,12 @@ int main(int argc, char *argv[])
}
#endif

/* Set application attributes */
/* Fix scalling issues on Windows */
#ifndef Q_OS_WIN
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#else
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
#endif

/* Set application info */
QApplication::setApplicationName(APP_DSPNAME);
Expand Down

0 comments on commit 759d2c6

Please sign in to comment.