diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-16 17:52:57 +0200 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2013-07-16 19:13:29 +0200 |
commit | 6230e0b896f2f022a83f034e401d18c259f22012 (patch) | |
tree | 9c854c88cf164f5a7168682d2629cb560cf7ba78 /core/asxparser.h | |
parent | dc142991f12c379282d6c52e6d98333765767c3c (diff) | |
download | mpv-6230e0b896f2f022a83f034e401d18c259f22012.tar.bz2 mpv-6230e0b896f2f022a83f034e401d18c259f22012.tar.xz |
wayland: early aspect calculation in vo_config
Calculate the aspect ratio in vo_config, when we get the window size and in the
inside the resize function we calculate the aspect ratio of the output in order
to determine if we have to change the height or the width of the video.
If the ratio of the output is bigger than the ratio of the video then we have
to set the width accordingly and if the ratio is smaller we change the size.
But only if no resize edges are passed, because this indicates that we want to
change the windows state instead of just a simple resize and the video should
not grow bigger than the requested size.
Diffstat (limited to 'core/asxparser.h')
0 files changed, 0 insertions, 0 deletions