mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +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));
|
||||
|
||||
|
|
|
|||
|
|
@ -534,6 +534,10 @@ void QuickTimeMovieComponent::assignMovieToWindow()
|
|||
|
||||
MacSetPort (savedPort);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetMovieGWorld (id->movie, 0, 0);
|
||||
}
|
||||
|
||||
reentrant = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue