From 09f3f6876306fe61fe12170cf32c9ea2caaac294 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Thu, 27 Apr 2023 17:30:11 +0700 Subject: [PATCH] Remove Fullscreen button from default control map Since the window size issue in old version was resolved, this button is no longer needed, plus enabling fullscreen would prevent version < 1.13 from resizing. --- Natives/customcontrols/CustomControlsUtils.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Natives/customcontrols/CustomControlsUtils.m b/Natives/customcontrols/CustomControlsUtils.m index 750b7c13..281f60ab 100644 --- a/Natives/customcontrols/CustomControlsUtils.m +++ b/Natives/customcontrols/CustomControlsUtils.m @@ -288,13 +288,6 @@ void generateAndSaveDefaultControl() { @"${bottom} - ${margin}", BTN_RECT )]; - // Additional button for old versions that don't enter fullscreen automatically - [dict[@"mControlDataList"] addObject:createButton(@"Fullscreen", - (int[]){GLFW_KEY_F11,0,0,0}, - @"${right} - ${margin} * 2 - ${width}", - @"${bottom} - ${margin}", - BTN_RECT - )]; NSOutputStream *os = [[NSOutputStream alloc] initToFileAtPath:defaultPath append:NO]; [os open]; [NSJSONSerialization writeJSONObject:dict toStream:os options:NSJSONWritingPrettyPrinted error:nil];