1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Updated the OpenGLComponent so that it can render sub-components when using a background thread, and changed the demo to use this mode (which is faster).

This commit is contained in:
jules 2011-12-23 10:33:05 +00:00
parent c38916b675
commit a997490f17
12 changed files with 253 additions and 244 deletions

View file

@ -809,10 +809,7 @@ void DirectShowComponent::paint (Graphics& g)
ComponentPeer* const peer = getPeer();
if (peer != nullptr)
{
const Point<int> topLeft (getScreenPosition() - peer->getScreenPosition());
peer->addMaskedRegion (topLeft.getX(), topLeft.getY(), getWidth(), getHeight());
}
peer->addMaskedRegion (getScreenBounds() - peer->getScreenPosition());
}
else
{