mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Implemented callbacks on the Mac when screen sizes change. Minor clean-ups.
This commit is contained in:
parent
85aeeea1e9
commit
0d412ad346
15 changed files with 340 additions and 417 deletions
|
|
@ -65,17 +65,14 @@ Desktop& JUCE_CALLTYPE Desktop::getInstance()
|
|||
Desktop* Desktop::instance = 0;
|
||||
|
||||
//==============================================================================
|
||||
extern void juce_updateMultiMonitorInfo (Array <Rectangle<int> >& monitorCoords,
|
||||
const bool clipToWorkArea);
|
||||
|
||||
void Desktop::refreshMonitorSizes()
|
||||
{
|
||||
Array <Rectangle<int> > oldClipped, oldUnclipped;
|
||||
oldClipped.swapWithArray (monitorCoordsClipped);
|
||||
oldUnclipped.swapWithArray (monitorCoordsUnclipped);
|
||||
|
||||
juce_updateMultiMonitorInfo (monitorCoordsClipped, true);
|
||||
juce_updateMultiMonitorInfo (monitorCoordsUnclipped, false);
|
||||
getCurrentMonitorPositions (monitorCoordsClipped, true);
|
||||
getCurrentMonitorPositions (monitorCoordsUnclipped, false);
|
||||
jassert (monitorCoordsClipped.size() == monitorCoordsUnclipped.size());
|
||||
|
||||
if (oldClipped != monitorCoordsClipped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue