diff options
author | der richter <der.richter@gmx.de> | 2023-11-20 16:26:21 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2023-11-20 23:16:43 +0100 |
commit | eb71aa059ad4beb0bfdef118d666eafae7869c92 (patch) | |
tree | 61ba8d03743052c333458210a6f4ed91f74e445f /osdep | |
parent | 947800ceb87512a00c86701d08e94ac30b2ca0b0 (diff) | |
download | mpv-eb71aa059ad4beb0bfdef118d666eafae7869c92.tar.bz2 mpv-eb71aa059ad4beb0bfdef118d666eafae7869c92.tar.xz |
mac: add rotation menubar entries
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/macosx_menubar.m | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/osdep/macosx_menubar.m b/osdep/macosx_menubar.m index d9ee159d8a..5c6cd4707e 100644 --- a/osdep/macosx_menubar.m +++ b/osdep/macosx_menubar.m @@ -295,6 +295,28 @@ }], @{ @"name": @"separator" }, [NSMutableDictionary dictionaryWithDictionary:@{ + @"name" : @"Rotate Left", + @"action" : @"cmd:", + @"key" : @"", + @"target" : self, + @"cmd" : @"cycle-values video-rotate 0 270 180 90" + }], + [NSMutableDictionary dictionaryWithDictionary:@{ + @"name" : @"Rotate Right", + @"action" : @"cmd:", + @"key" : @"", + @"target" : self, + @"cmd" : @"cycle-values video-rotate 90 180 270 0" + }], + [NSMutableDictionary dictionaryWithDictionary:@{ + @"name" : @"Reset Rotation", + @"action" : @"cmd:", + @"key" : @"", + @"target" : self, + @"cmd" : @"set video-rotate 0" + }], + @{ @"name": @"separator" }, + [NSMutableDictionary dictionaryWithDictionary:@{ @"name" : @"Half Size", @"key" : @"0", @"cmdSpecial" : [NSNumber numberWithInt:MPM_H_SIZE] |