1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2007-08-01 08:38:10 +00:00
parent d7e2cdc290
commit 92c35c26aa

View file

@ -2301,7 +2301,7 @@ void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool c
CGDisplayCount count = 0;
CGDirectDisplayID disps [8];
if (CGGetActiveDisplayList (numElementsInArray (disps), disps, &count) == noErr)
if (CGGetOnlineDisplayList (numElementsInArray (disps), disps, &count) == noErr)
{
for (int i = 0; i < count; ++i)
{
@ -2337,7 +2337,7 @@ void juce_updateMultiMonitorInfo (Array <Rectangle>& monitorCoords, const bool c
if (mainMonitorIndex > 0)
monitorCoords.swap (mainMonitorIndex, 0);
jassert (monitorCoords.size() > 0); // xxx seems like this can happen when the screen's in power-saving mode..
jassert (monitorCoords.size() > 0);
if (monitorCoords.size() == 0)
monitorCoords.add (Rectangle (0, 0, 1024, 768));