Browse Source

Fixed an issue where sliders would draw incorrectly in LookAndFeel4 if the slider's value text box was placed left to the slider

tags/2021-05-28
hogliux 8 years ago
parent
commit
7cbb792f71
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel_V4.cpp

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

@@ -942,7 +942,7 @@ void LookAndFeel_V4::drawLinearSlider (Graphics& g, int x, int y, int width, int
const auto trackWidth = jmin (6.0f, slider.isHorizontal() ? height * 0.25f : width * 0.25f); const auto trackWidth = jmin (6.0f, slider.isHorizontal() ? height * 0.25f : width * 0.25f);
const Point<float> startPoint (slider.isHorizontal() ? x : width * 0.5f,
const Point<float> startPoint (slider.isHorizontal() ? x : x + width * 0.5f,
slider.isHorizontal() ? y + height * 0.5f : height + y); slider.isHorizontal() ? y + height * 0.5f : height + y);
const Point<float> endPoint (slider.isHorizontal() ? width + x : startPoint.x, const Point<float> endPoint (slider.isHorizontal() ? width + x : startPoint.x,


Loading…
Cancel
Save