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.
This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2023-04-27 17:30:11 +07:00
1 parent 3fd10e7b82
commit 09f3f68763
1 file changed
-7
@@ -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];