Browse Source

Fixed a bug where DocumentWindow buttons were being drawn too large

tags/2021-05-28
ed 8 years ago
parent
commit
53cd6c014c
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp

+ 3
- 1
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp View File

@@ -192,7 +192,7 @@ Button* LookAndFeel_V4::createDocumentWindowButton (int buttonType)
return nullptr;
}
void LookAndFeel_V4::positionDocumentWindowButtons (DocumentWindow&,
void LookAndFeel_V4::positionDocumentWindowButtons (DocumentWindow& dw,
int titleBarX, int titleBarY,
int titleBarW, int titleBarH,
Button* minimiseButton,
@@ -200,6 +200,8 @@ void LookAndFeel_V4::positionDocumentWindowButtons (DocumentWindow&,
Button* closeButton,
bool positionTitleBarButtonsOnLeft)
{
titleBarH = jmin (titleBarH, titleBarH - titleBarY);
const int buttonW = (int) (titleBarH * 1.2);
int x = positionTitleBarButtonsOnLeft ? titleBarX


Loading…
Cancel
Save