mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Made sure the monitor list is sorted correctly on win32.
This commit is contained in:
parent
9cb86df630
commit
fec71a645b
1 changed files with 5 additions and 0 deletions
|
|
@ -3210,6 +3210,11 @@ void Desktop::Displays::findDisplays (float masterScale)
|
|||
if (monitors.size() == 0)
|
||||
monitors.add (MonitorInfo (rectangleFromRECT (getWindowRect (GetDesktopWindow())), true));
|
||||
|
||||
// make sure the first in the list is the main monitor
|
||||
for (int i = 1; i < monitors.size(); ++i)
|
||||
if (monitors.getReference(i).isMain)
|
||||
monitors.swap (i, 0);
|
||||
|
||||
RECT workArea;
|
||||
SystemParametersInfo (SPI_GETWORKAREA, 0, &workArea, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue