forked from lthn/blockchain
windows hightdpi mode 0.75 scale factor
This commit is contained in:
parent
c31b3c801b
commit
ba2af056fd
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue