[vlc-devel] [PATCH 3/3] Qt: Set proper vout size on hidpi setups.

Анатолий Аниськович lin.aaa.lin at gmail.com
Wed Aug 3 06:58:51 CEST 2016


It's ratio between virtual an physical pixels. Since Qt>=5.6 use it's
own coordinate system, so devicePixelRatio() is only way to roughly
estimate how much real pixels do you have.

It seems odd because there should be both Qt->VLC and VLC->Qt
conversion. This patch offers only Qt->VLC way, i.e setting vout size
in response to user actions. I'm not quite sure from where VLC sizes
come, but, I guess, it should be somewhere inside of
modules/gui/qt/qt.cpp. Fix me if I am wrong, will update the patch.

Idk if there is a real problem when 1:1 is actually N:1 on hidpi.
Exact 1:1 of 1080p video on hidpi screen will look smaller that 720p
on regular one.

Would like to hear your input on problems stated above.

2016-08-02 17:47 GMT+03:00 Rémi Denis-Courmont <remi at remlab.net>:
>
> I am not quite clear about what the ratio is, so I do not know if this is
> right or wrong. But it seems odd that the conversion is done in Qt->VLC
> direction and not in VLC->Qt direction. Is this code path actually tested?
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list