Revert "Add conditionals for OSX 10.6 and higher"

This reverts commit 7f7f23d08ba0494664c1cf941c219d3a84468be2.
This commit is contained in:
twinaphex 2018-08-31 19:19:35 +02:00
parent 91145e02c6
commit c7af7ae00d

View File

@ -370,7 +370,6 @@ static char** waiting_argv;
}
- (void)setVideoMode:(gfx_ctx_mode_t)mode {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
BOOL isFullScreen = (self.window.styleMask & NSFullScreenWindowMask) == NSFullScreenWindowMask;
if (mode.fullscreen && !isFullScreen)
{
@ -384,14 +383,11 @@ static char** waiting_argv;
}
if (mode.width > 0)
#endif
{
// HACK(sgc): ensure MTKView posts a drawable resize event
[self.window setContentSize:NSMakeSize(mode.width-1, mode.height)];
}
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
[self.window setContentSize:NSMakeSize(mode.width, mode.height)];
#endif
}
- (void)setCursorVisible:(bool)v {