1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
This commit is contained in:
jules 2007-11-26 10:30:27 +00:00
parent fc1ec8b496
commit cfa4c58435
2 changed files with 8 additions and 0 deletions

View file

@ -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));

View file

@ -534,6 +534,10 @@ void QuickTimeMovieComponent::assignMovieToWindow()
MacSetPort (savedPort);
}
else
{
SetMovieGWorld (id->movie, 0, 0);
}
reentrant = false;
}