mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Component opacity clipping fix.
This commit is contained in:
parent
8ef30afad2
commit
2ce2d3fe37
1 changed files with 2 additions and 2 deletions
|
|
@ -326,7 +326,7 @@ public:
|
|||
|
||||
if (! newClip.isEmpty())
|
||||
{
|
||||
if (child.isOpaque())
|
||||
if (child.isOpaque() && child.componentTransparency == 0)
|
||||
{
|
||||
g.excludeClipRegion (newClip + delta);
|
||||
}
|
||||
|
|
@ -351,7 +351,7 @@ public:
|
|||
|
||||
if (c != compToAvoid && c->isVisible())
|
||||
{
|
||||
if (c->isOpaque())
|
||||
if (c->isOpaque() && c->componentTransparency == 0)
|
||||
{
|
||||
Rectangle<int> childBounds (c->bounds.getIntersection (clipRect));
|
||||
childBounds.translate (delta.getX(), delta.getY());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue