[vlc-commits] [Git][videolan/vlc][master] macosx: fix compilation on future macOS
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Thu Jun 18 13:17:30 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
a10ee935 by Felix Paul Kühne at 2026-06-18T15:06:12+02:00
macosx: fix compilation on future macOS
Future versions of AppKit have multiple frame methods,
both RO and RW leading to compilation failures
- - - - -
1 changed file:
- modules/gui/macosx/menus/VLCMainMenu.m
Changes:
=====================================
modules/gui/macosx/menus/VLCMainMenu.m
=====================================
@@ -783,12 +783,13 @@ typedef NS_ENUM(NSInteger, VLCObjectType) {
[menuItem setTarget: self];
NSRect s_rect;
for (NSUInteger i = 0; i < numberOfScreens; i++) {
- s_rect = [[screens objectAtIndex:i] frame];
+ NSScreen *screen = [screens objectAtIndex:i];
+ s_rect = [screen frame];
[submenu addItemWithTitle:[NSString stringWithFormat: @"%@ %li (%ix%i)", _NS("Screen"), i+1, (int)s_rect.size.width, (int)s_rect.size.height]
action:@selector(toggleFullscreenDevice:)
keyEquivalent:@""];
menuItem = [submenu itemAtIndex:i+1];
- [menuItem setTag:(int)[[screens objectAtIndex:i] displayID]];
+ [menuItem setTag:(int)[screen displayID]];
[menuItem setEnabled: YES];
[menuItem setTarget: self];
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a10ee9353bb0da93460c695df2f0015ade2350db
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a10ee9353bb0da93460c695df2f0015ade2350db
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