Browse Source

Demo app: Fixed a typo in the look-and-feel demo

tags/2021-05-28
jules 10 years ago
parent
commit
96d428ae17
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/Demo/Source/Demos/LookAndFeelDemo.cpp

+ 1
- 1
examples/Demo/Source/Demos/LookAndFeelDemo.cpp View File

@@ -212,7 +212,7 @@ struct CustomLookAndFeel : public LookAndFeel_V3
if (slider.isHorizontal())
{
const float iy = x + width * 0.5f - sliderRadius * 0.5f;
const float iy = y + height * 0.5f - sliderRadius * 0.5f;
Rectangle<float> r (x - sliderRadius * 0.5f, iy, width + sliderRadius, sliderRadius);
const float onW = r.getWidth() * ((float) slider.valueToProportionOfLength (slider.getValue()));


Loading…
Cancel
Save