mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
This commit is contained in:
parent
fc1ec8b496
commit
cfa4c58435
2 changed files with 8 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ const Rectangle Desktop::getMonitorAreaContaining (int cx, int cy, const bool cl
|
|||
for (int i = getNumDisplayMonitors(); --i > 0;)
|
||||
{
|
||||
const Rectangle rect (getDisplayMonitorCoordinates (i, clippedToWorkArea));
|
||||
|
||||
if (rect.contains (cx, cy))
|
||||
return rect;
|
||||
|
||||
const double distance = juce_hypot ((double) (rect.getCentreX() - cx),
|
||||
(double) (rect.getCentreY() - cy));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue