Allow mirrored displays, but only the primary display in a mirrored set.
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Dec 2009 10:34:01 +0000
changeset 3504 919d88c202cf
parent 3503 7931094e4c48
child 3505 a1bf34bc2a58
Allow mirrored displays, but only the primary display in a mirrored set.
src/video/cocoa/SDL_cocoamodes.m
--- a/src/video/cocoa/SDL_cocoamodes.m	Tue Dec 01 09:04:28 2009 +0000
+++ b/src/video/cocoa/SDL_cocoamodes.m	Tue Dec 01 10:34:01 2009 +0000
@@ -160,7 +160,7 @@
         SDL_DisplayMode mode;
         CFDictionaryRef moderef;
 
-        if (CGDisplayIsInMirrorSet(displays[i])) {
+        if (CGDisplayMirrorsDisplay(displays[i]) != kCGNullDirectDisplay) {
             continue;
         }
         moderef = CGDisplayCurrentMode(displays[i]);