1
0
Fork 0
forked from lthn/blockchain

windows hightdpi mode 0.75 scale factor

This commit is contained in:
crypro.zoidberg 2019-01-16 20:27:07 +03:00
parent c31b3c801b
commit ba2af056fd

View file

@ -44,6 +44,12 @@ int main(int argc, char *argv[])
epee::string_tools::set_module_name_and_folder(argv[0]);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#ifdef _MSC_VER
#if _MSC_VER >= 1910
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); //HiDPI pixmaps
qputenv("QT_SCALE_FACTOR", "0.75");
#endif
#endif
QApplication app(argc, argv);
MainWindow viewer;