Ticket #16249: vbox_hidpi_support.patch
| File vbox_hidpi_support.patch, 1.2 KB (added by , 8 years ago) |
|---|
-
src/VBox/Frontends/VirtualBox/src/main.cpp
old new extern "C" DECLEXPORT(int) TrustedMain(i 446 446 qInstallMsgHandler(QtMessageOutput); 447 447 #endif /* QT_VERSION < 0x050000 */ 448 448 449 #if QT_VERSION >= 0x050600 450 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 451 #endif 452 #if QT_VERSION >= 0x050700 453 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); 454 #endif 449 455 /* Create application: */ 450 456 QApplication a(argc, argv); 451 457 … … int main(int argc, char **argv, char **e 603 609 /* Initialization failed: */ 604 610 if (RT_FAILURE(rc)) 605 611 { 612 #if QT_VERSION >= 0x050600 613 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 614 #endif 615 #if QT_VERSION >= 0x050700 616 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); 617 #endif 606 618 /* We have to create QApplication anyway 607 619 * just to show the only one error-message: */ 608 620 QApplication a(argc, &argv[0]);

