1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Slider: Fix linear bar slider outline

This commit is contained in:
Anthony Nicholls 2023-06-14 12:15:20 +01:00
parent aceef4f5a2
commit 21aca5ba3e

View file

@ -1373,13 +1373,13 @@ void LookAndFeel_V2::drawLinearSliderBackground (Graphics& g, int x, int y, int
g.strokePath (indent, PathStrokeType (0.5f));
}
void LookAndFeel_V2::drawLinearSliderOutline (Graphics& g, int, int, int width, int height,
void LookAndFeel_V2::drawLinearSliderOutline (Graphics& g, int, int, int, int,
const Slider::SliderStyle, Slider& slider)
{
if (slider.getTextBoxPosition() == Slider::NoTextBox)
{
g.setColour (slider.findColour (Slider::textBoxOutlineColourId));
g.drawRect (0, 0, width, height, 1);
g.drawRect (0, 0, slider.getWidth(), slider.getHeight(), 1);
}
}