Hello community, here is the log from the commit of package virtualbox for openSUSE:Factory checked in at 2016-12-03 18:25:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virtualbox (Old) and /work/SRC/openSUSE:Factory/.virtualbox.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "virtualbox" Changes: -------- --- /work/SRC/openSUSE:Factory/virtualbox/virtualbox.changes 2016-11-25 12:27:49.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.virtualbox.new/virtualbox.changes 2016-12-03 18:25:35.000000000 +0100 @@ -1,0 +2,7 @@ +Wed Nov 30 16:45:43 UTC 2016 - asn@cryptomilk.org + +- Add patch file "vbox_hidpi_support.patch" to add support for HiDPI in the + management frontend. + (This does not fix rendering in guest windows) + +------------------------------------------------------------------- New: ---- vbox_hidpi_support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virtualbox.spec ++++++ --- /var/tmp/diff_new_pack.Za0nvr/_old 2016-12-03 18:25:39.000000000 +0100 +++ /var/tmp/diff_new_pack.Za0nvr/_new 2016-12-03 18:25:39.000000000 +0100 @@ -90,6 +90,8 @@ Patch113: vbox_remove_smp_mflags.patch # Fix build error on kernel 4.9 Patch114: vbox_fix_4.9_api_changes.patch +# Add support for HiDPI in the management frontend +Patch115: vbox_hidpi_support.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -325,6 +327,7 @@ %patch112 -p1 %patch113 -p1 %patch114 -p1 +%patch115 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf ++++++ vbox_hidpi_support.patch ++++++ Index: VirtualBox-5.1.10/src/VBox/Frontends/VirtualBox/src/main.cpp =================================================================== --- VirtualBox-5.1.10.orig/src/VBox/Frontends/VirtualBox/src/main.cpp 2016-11-21 18:31:06.000000000 +0100 +++ VirtualBox-5.1.10/src/VBox/Frontends/VirtualBox/src/main.cpp 2016-11-30 14:04:31.028269344 +0100 @@ -446,6 +446,12 @@ extern "C" DECLEXPORT(int) TrustedMain(i qInstallMsgHandler(QtMessageOutput); #endif /* QT_VERSION < 0x050000 */ +#if QT_VERSION >= 0x050600 + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif +#if QT_VERSION >= 0x050700 + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif /* Create application: */ QApplication a(argc, argv); @@ -603,6 +609,12 @@ int main(int argc, char **argv, char **e /* Initialization failed: */ if (RT_FAILURE(rc)) { +#if QT_VERSION >= 0x050600 + QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); +#endif +#if QT_VERSION >= 0x050700 + QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); +#endif /* We have to create QApplication anyway * just to show the only one error-message: */ QApplication a(argc, &argv[0]);