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

Removed an old piece of code that hard-coded a dark border around non-resizable non-native DocumentWindows

This commit is contained in:
jules 2015-12-14 10:21:21 +00:00
parent 82b0a3628b
commit 3a061ad319

View file

@ -188,15 +188,6 @@ void DocumentWindow::paint (Graphics& g)
{
ResizableWindow::paint (g);
if (resizableBorder == nullptr)
{
RectangleList<int> border (getLocalBounds());
border.subtract (getBorderThickness().subtractedFrom (getLocalBounds()));
g.setColour (getBackgroundColour().overlaidWith (Colour (0x80000000)));
g.fillRectList (border);
}
const Rectangle<int> titleBarArea (getTitleBarArea());
g.reduceClipRegion (titleBarArea);
g.setOrigin (titleBarArea.getPosition());