From eb71aa059ad4beb0bfdef118d666eafae7869c92 Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 20 Nov 2023 16:26:21 +0100 Subject: [PATCH] mac: add rotation menubar entries --- osdep/macosx_menubar.m | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 @@ -294,6 +294,28 @@ @"cmd" : @"set video-aspect-override \"-1\"" }], @{ @"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",