Browse Source

Optimisation for look and feel drawing of zero-size title bars

tags/2021-05-28
jules 9 years ago
parent
commit
01c73ff0a6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp

+ 3
- 0
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V2.cpp View File

@@ -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…
Cancel
Save