commit a75b044187f00eb438867f272e002967b033044d
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Tue Nov 22 15:36:29 2016 +0000
add patch to disable HIDPI scaling - rfbz#4272
disable_hidpi_scaling.patch | 14 ++++++++++++++
vlc.spec | 7 ++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/disable_hidpi_scaling.patch b/disable_hidpi_scaling.patch
new file mode 100644
index 0000000..116edb5
--- /dev/null
+++ b/disable_hidpi_scaling.patch
@@ -0,0 +1,14 @@
+--- a/modules/gui/qt/qt.cpp 2016-11-18 02:24:10.000000000 +0000
++++ b/modules/gui/qt/qt.cpp 2016-11-22 14:28:23.503056877 +0000
+@@ -478,9 +478,10 @@ static void *Thread( void *obj )
+
+ Q_INIT_RESOURCE( vlc );
+
++ /* Disable scaling as it's broken
+ #if HAS_QT56
+ QApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
+-#endif
++#endif */
+
+ /* Start the QApplication here */
+ QVLCApp app( argc, argv );
diff --git a/vlc.spec b/vlc.spec
index 876e63f..3b2a7ff 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -32,13 +32,14 @@
Summary: The cross-platform open-source multimedia framework, player and server
Name: vlc
Version: 3.0.0
-Release: 0.10%{?dist}
+Release: 0.11%{?dist}
License: GPLv2+
Group: Applications/Multimedia
URL:
http://www.videolan.org
#Source0:
http://download.videolan.org/pub/videolan/vlc/%{version}/vlc-%{version}%{...
# nightly for 3.0
Source0:
http://nightlies.videolan.org/build/source/vlc-%{version}%{?vlc_rc}.tar.xz
+Patch0: disable_hidpi_scaling.patch
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
@@ -227,6 +228,7 @@ VLC media player extras modules.
%prep
%setup -q -n %{name}-%{version}%{?vlc_rc:-git}
+%patch0 -p1
%{?_with_bootstrap:
rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :
./bootstrap
@@ -497,6 +499,9 @@ fi || :
%changelog
+* Tue Nov 22 2016 leigh scott <leigh123linux(a)googlemail.com> - 3.0.0-0.11
+- add patch to disable HIDPI scaling - rfbz#4272
+
* Tue Nov 08 2016 Sérgio Basto <sergio(a)serjux.com> - 3.0.0-0.10
- Rebuild for x265-2.1