mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-02 03:20:06 +00:00
This commit is contained in:
parent
548e59d24f
commit
8dd2db73d2
11 changed files with 3640 additions and 3571 deletions
|
|
@ -77,12 +77,26 @@ Desktop& JUCE_CALLTYPE Desktop::getInstance() throw()
|
|||
//==============================================================================
|
||||
void Desktop::refreshMonitorSizes() throw()
|
||||
{
|
||||
const Array <Rectangle> oldClipped (monitorCoordsClipped);
|
||||
const Array <Rectangle> oldUnclipped (monitorCoordsUnclipped);
|
||||
|
||||
monitorCoordsClipped.clear();
|
||||
monitorCoordsUnclipped.clear();
|
||||
juce_updateMultiMonitorInfo (monitorCoordsClipped, true);
|
||||
juce_updateMultiMonitorInfo (monitorCoordsUnclipped, false);
|
||||
jassert (monitorCoordsClipped.size() > 0
|
||||
&& monitorCoordsClipped.size() == monitorCoordsUnclipped.size());
|
||||
|
||||
if (oldClipped != monitorCoordsClipped
|
||||
|| oldUnclipped != monitorCoordsUnclipped)
|
||||
{
|
||||
for (int i = ComponentPeer::getNumPeers(); --i >= 0;)
|
||||
{
|
||||
ComponentPeer* const p = ComponentPeer::getPeer (i);
|
||||
if (p != 0)
|
||||
p->handleScreenSizeChange();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int Desktop::getNumDisplayMonitors() const throw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue