forked from pool/virtualbox
- Revert "vbox_hdpi_support.patch. This patch may improve things for asn@cryptomilk.org, but it breaks other systems.
See https://forums.opensuse.org/showthread.php/521520-VirtualBox-interface-scaling and bsc #1014694. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=300
This commit is contained in:
parent
7bebcb99dc
commit
e83297d2ef
@ -1,30 +0,0 @@
|
||||
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]);
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 12 16:27:28 UTC 2016 - Larry.Finger@lwfinger.net
|
||||
|
||||
- Revert "vbox_hdpi_support.patch. This patch may improve things for asn@cryptomilk.org, but it breaks other systems.
|
||||
See https://forums.opensuse.org/showthread.php/521520-VirtualBox-interface-scaling and bsc #1014694.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 5 22:34:34 UTC 2016 - Larry.Finger@lwfinger.net
|
||||
|
||||
|
@ -90,8 +90,6 @@ Patch112: modify_for_4_8_bo_move.patch
|
||||
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
|
||||
# Fix for missing include needed for server 1.19
|
||||
Patch116: Fix_for_server_1.19.patch
|
||||
#
|
||||
@ -330,7 +328,6 @@ This package contains icons for guest desktop files that were created on the des
|
||||
%patch112 -p1
|
||||
%patch113 -p1
|
||||
%patch114 -p1
|
||||
%patch115 -p1
|
||||
%patch116 -p1
|
||||
|
||||
#copy user manual
|
||||
|
Loading…
Reference in New Issue
Block a user