1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Updated the path flattening code to correctly observe tolerance values, and made the tolerances adapt to the scaling being used when drawing to a transformed graphics context. Fixed a small issue with focus listeners, and a mac menu dismissal problem.

This commit is contained in:
Julian Storer 2010-12-15 17:20:26 +00:00
parent f402ce803b
commit 5f347bc999
29 changed files with 432 additions and 311 deletions

View file

@ -1843,6 +1843,11 @@ public:
}
}
float getScaleFactor() const
{
return isOnlyTranslated ? 1.0f : complexTransform.getScaleFactor();
}
bool clipToRectangle (const Rectangle<int>& r)
{
if (clip != 0)
@ -2254,6 +2259,11 @@ void LowLevelGraphicsSoftwareRenderer::addTransform (const AffineTransform& tran
currentState->addTransform (transform);
}
float LowLevelGraphicsSoftwareRenderer::getScaleFactor()
{
return currentState->getScaleFactor();
}
bool LowLevelGraphicsSoftwareRenderer::clipToRectangle (const Rectangle<int>& r)
{
return currentState->clipToRectangle (r);