mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
Optimisation for look and feel drawing of zero-size title bars
This commit is contained in:
parent
a700774d6f
commit
01c73ff0a6
1 changed files with 3 additions and 0 deletions
|
|
@ -1726,6 +1726,9 @@ void LookAndFeel_V2::drawDocumentWindowTitleBar (DocumentWindow& window, Graphic
|
|||
int w, int h, int titleSpaceX, int titleSpaceW,
|
||||
const Image* icon, bool drawTitleTextOnLeft)
|
||||
{
|
||||
if (w * h == 0)
|
||||
return;
|
||||
|
||||
const bool isActive = window.isActiveWindow();
|
||||
|
||||
g.setGradientFill (ColourGradient (window.getBackgroundColour(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue