- 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
This commit is contained in:
alexey.lysiuk 2022-10-24 09:57:36 +03:00
parent 671b8696bb
commit da33b0f9c3

View file

@ -213,13 +213,6 @@ int DoMain(int argc, char** argv)
setenv("LC_NUMERIC", "C", 1); setenv("LC_NUMERIC", "C", 1);
setlocale(LC_ALL, "C"); setlocale(LC_ALL, "C");
// Set reasonable default values for video settings
const NSSize screenSize = [[NSScreen mainScreen] frame].size;
vid_defwidth = static_cast<int>(screenSize.width);
vid_defheight = static_cast<int>(screenSize.height);
vid_vsync = true;
Args = new FArgs(argc, argv); Args = new FArgs(argc, argv);
NSString* exePath = [[NSBundle mainBundle] executablePath]; NSString* exePath = [[NSBundle mainBundle] executablePath];