[vlc-devel] [PATCH 4/4] Qt: set proper vout size on hidpi setups
Jean-Baptiste Kempf
jb at videolan.org
Sun Aug 7 10:54:55 CEST 2016
On 07 Aug, Anatoliy Anischovich wrote :
> diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
> index 740d29f..05a71b5 100644
> --- a/modules/gui/qt/components/interface_widgets.cpp
> +++ b/modules/gui/qt/components/interface_widgets.cpp
> @@ -176,6 +176,12 @@ void VideoWidget::reportSize( int w, int h )
> if( !p_window )
> return;
>
> +#if HAS_QT56
> + qreal ratio = devicePixelRatioF();
> + w *= ratio;
> + h *= ratio;
> +#endif
> +
> vout_window_ReportSize( p_window, w, h );
> }
This cannot be correct. A pixel is a pixel for the video output.
With my kindest regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list