From e12154601b1889f59fdf31311f11a198dace6a68 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 30 Mar 2023 00:49:09 +0200 Subject: [PATCH] also add 32:9 button --- src/ext/conf/ExtConfPatches.ts | 9 +++++++++ src/ext/conf/ExtensionConf.ts | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/ext/conf/ExtConfPatches.ts b/src/ext/conf/ExtConfPatches.ts index 718e25c..bf46c02 100644 --- a/src/ext/conf/ExtConfPatches.ts +++ b/src/ext/conf/ExtConfPatches.ts @@ -243,6 +243,15 @@ const ExtensionConfPatch = [ onKeyDown: false, } }); + userOptions.commands.crop.push({ + action: 'set-ar', + label: '32:9', + comment: 'Crop for 32:9 aspect ratio', + arguments: { + type: AspectRatioType.Fixed, + ratio: 3.56 + }, + }) } } ]; diff --git a/src/ext/conf/ExtensionConf.ts b/src/ext/conf/ExtensionConf.ts index 0aacff7..b21d1f9 100644 --- a/src/ext/conf/ExtensionConf.ts +++ b/src/ext/conf/ExtensionConf.ts @@ -302,6 +302,14 @@ const ExtensionConf: SettingsInterface = { onKeyUp: false, onKeyDown: true, } + }, { + action: 'set-ar', + label: '32:9', + comment: 'Crop for 32:9 aspect ratio', + arguments: { + type: AspectRatioType.Fixed, + ratio: 3.56 + }, }], stretch: [{ action: 'set-stretch',