mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Revert "Add conditionals for OSX 10.6 and higher"
This reverts commit 7f7f23d08ba0494664c1cf941c219d3a84468be2.
This commit is contained in:
parent
91145e02c6
commit
c7af7ae00d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user