From 2df33e7d8a7de4d819a87d7388ef8b897f9f3c68 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 24 Oct 2022 10:26:57 +0300 Subject: [PATCH] - removed obsolete defaults from Cocoa backend This legacy code from the time of exclusive fullscreen mode began to crash after changes in console variables handling --- source/common/platform/posix/cocoa/i_main.mm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/common/platform/posix/cocoa/i_main.mm b/source/common/platform/posix/cocoa/i_main.mm index 21b4b3bef..3e257a5ce 100644 --- a/source/common/platform/posix/cocoa/i_main.mm +++ b/source/common/platform/posix/cocoa/i_main.mm @@ -213,13 +213,6 @@ int DoMain(int argc, char** argv) setenv("LC_NUMERIC", "C", 1); setlocale(LC_ALL, "C"); - // Set reasonable default values for video settings - - const NSSize screenSize = [[NSScreen mainScreen] frame].size; - vid_defwidth = static_cast(screenSize.width); - vid_defheight = static_cast(screenSize.height); - vid_vsync = true; - Args = new FArgs(argc, argv); NSString* exePath = [[NSBundle mainBundle] executablePath];