[vlc-commits] Qt: enable scaling for Qt>=5.6

Anatoliy Anischovich git at videolan.org
Mon Aug 8 19:44:10 CEST 2016


vlc | branch: master | Anatoliy Anischovich <lin.aaa.lin at gmail.com> | Sun Aug  7 00:11:54 2016 +0300| [a4b9ccf1007827a364e1dc44a462187bab960459] | committer: Jean-Baptiste Kempf

Qt: enable scaling for Qt>=5.6

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4b9ccf1007827a364e1dc44a462187bab960459
---

 modules/gui/qt/qt.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/qt.cpp b/modules/gui/qt/qt.cpp
index 317b82c..07b4b3a 100644
--- a/modules/gui/qt/qt.cpp
+++ b/modules/gui/qt/qt.cpp
@@ -478,6 +478,10 @@ static void *Thread( void *obj )
 
     Q_INIT_RESOURCE( vlc );
 
+#if HAS_QT56
+    QApplication::setAttribute( Qt::AA_EnableHighDpiScaling );
+#endif
+
     /* Start the QApplication here */
     QVLCApp app( argc, argv );
 



More information about the vlc-commits mailing list