1
0
Fork 0
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:
reuk 2022-12-14 18:59:44 +00:00
parent 1fffffde04
commit eee7200629

View file

@ -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);
}