From 972caa4f032b2d0138d541ec6a15fbf933fb40ba Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Mon, 16 Aug 2021 15:53:31 +0700 Subject: [PATCH] Move the fullscreen button --- Natives/customcontrols/CustomControlsUtils.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Natives/customcontrols/CustomControlsUtils.m b/Natives/customcontrols/CustomControlsUtils.m index 7b2eb910..33475c35 100644 --- a/Natives/customcontrols/CustomControlsUtils.m +++ b/Natives/customcontrols/CustomControlsUtils.m @@ -222,8 +222,8 @@ void generateAndSaveDefaultControl() { // 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}", - @"${bottom} - ${margin} * 2 - ${height}", + @"${right} - ${margin} * 2 - ${width}", + @"${bottom} - ${margin}", BTN_RECT )]; NSOutputStream *os = [[NSOutputStream alloc] initToFileAtPath: