vlc | branch: master | Pierre Lamot <[email protected]> | Mon Aug 5 15:34:10 2019 +0200| [9362231cd28bc6d7bed50dc1f2a03528805ade1b] | committer: Jean-Baptiste Kempf
qml: use the source image aspect ration for the player cover size > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9362231cd28bc6d7bed50dc1f2a03528805ade1b --- modules/gui/qt/qml/player/Player.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/qml/player/Player.qml b/modules/gui/qt/qml/player/Player.qml index 005789203f..839e69c9cc 100644 --- a/modules/gui/qt/qml/player/Player.qml +++ b/modules/gui/qt/qml/player/Player.qml @@ -46,7 +46,10 @@ Utils.NavigableFocusScope { : VLCStyle.noArtCover fillMode: Image.PreserveAspectFit - width: parent.width / 2 + //source aspect ratio + property real sar: cover.sourceSize.width / cover.sourceSize.height + + width: (parent.height * sar) / 2 height: parent.height / 2 anchors { horizontalCenter: parent.horizontalCenter _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
