[vlc-commits] [Git][videolan/vlc][master] macosx/AspectRatioRetainingVideoWindow: respect native video size
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Mon Oct 26 09:30:00 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
59d50108 by Felix Paul Kühne at 2026-10-26T09:13:45+01:00
macosx/AspectRatioRetainingVideoWindow: respect native video size
Previously, the calculation depended on the content rect size which may
be nil depending on when layouting happens, which could lead to
unwanted letterboxing.
- - - - -
1 changed file:
- modules/gui/macosx/windows/video/VLCAspectRatioRetainingVideoWindow.m
Changes:
=====================================
modules/gui/macosx/windows/video/VLCAspectRatioRetainingVideoWindow.m
=====================================
@@ -48,9 +48,7 @@
f_height = VLCVideoWindowCommonMinimalHeight;
/* Calculate the window's new size */
- NSRect new_frame;
- new_frame.size.width = [self frame].size.width - [self.videoViewController.view frame].size.width + f_width;
- new_frame.size.height = [self frame].size.height - [self.videoViewController.view frame].size.height + f_height;
+ NSRect new_frame = [self frameRectForContentRect:NSMakeRect(0., 0., f_width, f_height)];
new_frame.origin.x = topleftscreen.x;
new_frame.origin.y = topleftscreen.y - new_frame.size.height;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/59d50108d52fc247e9071dc69265ffbfadb490bb
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/59d50108d52fc247e9071dc69265ffbfadb490bb
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list