Accepting request 442939 from Virtualization
Add support for HiDPI in the management frontend This does not fix rendering in guest windows https://doc.qt.io/qt-5/qpainter.html#drawing-high-resolution-versions-of-pixmaps-and-images (forwarded request 442920 from gladiac) OBS-URL: https://build.opensuse.org/request/show/442939 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=124
This commit is contained in:
commit
8b3b9435ff
30
vbox_hidpi_support.patch
Normal file
30
vbox_hidpi_support.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
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,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 21 22:43:33 UTC 2016 - Larry.Finger@lwfinger.net
|
Mon Nov 21 22:43:33 UTC 2016 - Larry.Finger@lwfinger.net
|
||||||
|
|
||||||
|
@ -90,6 +90,8 @@ Patch112: modify_for_4_8_bo_move.patch
|
|||||||
Patch113: vbox_remove_smp_mflags.patch
|
Patch113: vbox_remove_smp_mflags.patch
|
||||||
# Fix build error on kernel 4.9
|
# Fix build error on kernel 4.9
|
||||||
Patch114: vbox_fix_4.9_api_changes.patch
|
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: LibVNCServer-devel
|
||||||
BuildRequires: SDL-devel
|
BuildRequires: SDL-devel
|
||||||
@ -325,6 +327,7 @@ This package contains icons for guest desktop files that were created on the des
|
|||||||
%patch112 -p1
|
%patch112 -p1
|
||||||
%patch113 -p1
|
%patch113 -p1
|
||||||
%patch114 -p1
|
%patch114 -p1
|
||||||
|
%patch115 -p1
|
||||||
|
|
||||||
#copy user manual
|
#copy user manual
|
||||||
cp %{SOURCE1} UserManual.pdf
|
cp %{SOURCE1} UserManual.pdf
|
||||||
|
Loading…
Reference in New Issue
Block a user