comparison src/video/cocoa/SDL_cocoamodes.m @ 3504:919d88c202cf

Allow mirrored displays, but only the primary display in a mirrored set.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Dec 2009 10:34:01 +0000
parents 4b594623401b
children a1bf34bc2a58
comparison
equal deleted inserted replaced
3503:7931094e4c48 3504:919d88c202cf
158 SDL_VideoDisplay display; 158 SDL_VideoDisplay display;
159 SDL_DisplayData *displaydata; 159 SDL_DisplayData *displaydata;
160 SDL_DisplayMode mode; 160 SDL_DisplayMode mode;
161 CFDictionaryRef moderef; 161 CFDictionaryRef moderef;
162 162
163 if (CGDisplayIsInMirrorSet(displays[i])) { 163 if (CGDisplayMirrorsDisplay(displays[i]) != kCGNullDirectDisplay) {
164 continue; 164 continue;
165 } 165 }
166 moderef = CGDisplayCurrentMode(displays[i]); 166 moderef = CGDisplayCurrentMode(displays[i]);
167 if (!moderef) { 167 if (!moderef) {
168 continue; 168 continue;