formatting :)

This commit is contained in:
Trent
2017-06-19 18:02:07 -04:00
parent f0753bf5dd
commit f86b0de4a2

View File

@@ -13,15 +13,15 @@
class LampshadeLookAndFeel : public LookAndFeel_V4 {
public:
void drawLinearSlider (Graphics& g,
int x,
int y,
int width,
int height,
float sliderPos,
float minSliderPos,
float maxSliderPos,
const Slider::SliderStyle s,
Slider& slider) override
int x,
int y,
int width,
int height,
float sliderPos,
float minSliderPos,
float maxSliderPos,
const Slider::SliderStyle s,
Slider& slider) override
{
g.setColour(fillColor);
g.fillRect((int)(x-minSliderPos), y, (int)(width+minSliderPos+maxSliderPos), height);
@@ -29,15 +29,16 @@ public:
}
void drawLinearSliderThumb(Graphics & g,
int x,
int y,
int width,
int height,
float sliderPos,
float minSliderPos,
float maxSliderPos,
const Slider::SliderStyle ,
Slider& slider) override {
int x,
int y,
int width,
int height,
float sliderPos,
float minSliderPos,
float maxSliderPos,
const Slider::SliderStyle,
Slider& slider) override
{
g.setColour(sliderColor);
int nwidth = width+minSliderPos+maxSliderPos;
g.fillRect((int)(x-minSliderPos), y, (int)(nwidth*((sliderPos-minSliderPos)/width)), height);