mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
SidePanel: Fix shadow drawing artefact on hi-res screens
This commit is contained in:
parent
1fffffde04
commit
eee7200629
1 changed files with 2 additions and 1 deletions
|
|
@ -159,7 +159,8 @@ void SidePanel::paint (Graphics& g)
|
|||
: shadowArea.getTopLeft()).toFloat(), false));
|
||||
g.fillRect (shadowArea);
|
||||
|
||||
g.excludeClipRegion (shadowArea);
|
||||
g.reduceClipRegion (getLocalBounds().withTrimmedRight (shadowArea.getWidth())
|
||||
.withX (isOnLeft ? 0 : shadowArea.getWidth()));
|
||||
g.fillAll (bgColour);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue