summaryrefslogtreecommitdiffstats
path: root/mpv_talloc.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2021-08-09 10:33:55 -0500
committerDudemanguy <random342@airmail.cc>2021-08-09 16:33:39 +0000
commit02323a184f2ddfed112d83d8e4f5880a0ee30480 (patch)
tree4f9ec3fe145516ce29e364f7b2eaeb011d7fab41 /mpv_talloc.h
parent9dc0857b3d989148fb9d871e6cd3f1bc3c9110db (diff)
downloadmpv-02323a184f2ddfed112d83d8e4f5880a0ee30480.tar.bz2
mpv-02323a184f2ddfed112d83d8e4f5880a0ee30480.tar.xz
command: check for monitor par in window-scale
When performing the scaling calculations, the window scale properties do not bother checking for potential monitor par. The vo keeps track of this via vo->monitor_par. Simply multiply/divide the video's width or height depending on the value of monitor_par. We also clamp the values to avoid the values running away to infinity in extreme cases.
Diffstat (limited to 'mpv_talloc.h')
0 files changed, 0 insertions, 0 deletions