diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/init.cpp b/gui/init.cpp index bac8f700..4c3766da 100644 --- a/gui/init.cpp +++ b/gui/init.cpp @@ -200,8 +200,10 @@ int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_w { set_fp_mask(); +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QCoreApplication::setAttribute(Qt::AA_X11InitThreads, true); +#endif + QCoreApplication::setAttribute(Qt::AA_X11InitThreads); QApplication app(argc, argv); |