mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
StackBasedLowLevelGraphicsContext: Prefer using RectangleListRegion clip when possible
This reverts a tiny part of 19061e6d17.
This commit is contained in:
parent
dda0719d56
commit
29327144db
1 changed files with 7 additions and 1 deletions
|
|
@ -137,7 +137,8 @@ public:
|
|||
return r.transformedBy (complexTransform);
|
||||
}
|
||||
|
||||
auto transformed (Point<float> r) const noexcept
|
||||
template <typename RectangleOrPoint>
|
||||
auto transformed (RectangleOrPoint r) const noexcept
|
||||
{
|
||||
jassert (! isOnlyTranslated);
|
||||
return r.transformedBy (complexTransform);
|
||||
|
|
@ -2022,6 +2023,11 @@ public:
|
|||
cloneClipIfMultiplyReferenced();
|
||||
clip = clip->clipToRectangle (transform.translated (r));
|
||||
}
|
||||
else if (! transform.isRotated)
|
||||
{
|
||||
cloneClipIfMultiplyReferenced();
|
||||
clip = clip->clipToRectangle (transform.transformed (r));
|
||||
}
|
||||
else
|
||||
{
|
||||
Path p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue