Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJens Verwiebe <info@jensverwiebe.de>2014-10-14 15:17:14 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-15 15:53:45 +0400
commit0ddae97e9d582698c5010eb618f4ff42db50f7d8 (patch)
treee428ec7650008c1c500796921a249bf768fcc6d2 /intern
parent804005650ec961ba2200e34f5ef6fe590c210699 (diff)
OSX: refinement for last fullscreen condition commit
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowCocoa.mm14
1 files changed, 6 insertions, 8 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 328bb37249b..a7a3470159d 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -728,17 +728,15 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
if (state == GHOST_kWindowStateFullScreen)
setState(GHOST_kWindowStateFullScreen);
- // Starting with 10.9 (darwin 13.x.x), we always use Lion fullscreen, since it
- // now has better multi-monitor support for fullscreen
+ // Starting with 10.9 (darwin 13.x.x), we can use Lion fullscreen,
+ // since it now has better multi-monitor support
// if the screens are spawned, additional screens get useless,
// so we only use lionStyleFullScreen when screens have separate spaces
- char darwin_ver[10];
- size_t len = sizeof(darwin_ver);
- sysctlbyname("kern.osrelease", &darwin_ver, &len, NULL, 0);
- if(darwin_ver[0] == '1' && darwin_ver[1] >= '3' && [NSScreen screensHaveSeparateSpaces]) {
- m_lionStyleFullScreen = true;
- }
+ if ([NSScreen respondsToSelector:@selector(screensHaveSeparateSpaces)] && [NSScreen screensHaveSeparateSpaces]) {
+ // implies we are on >= OSX 10.9
+ m_lionStyleFullScreen = true;
+ }
[pool drain];
}