@@ -1567,7 +1567,7 @@ public override void DrawListBoxLine(Control.Base control, bool selected, bool e
15671567 mTextures . Input . ListBox . OddLine . Draw ( Renderer , control . RenderBounds , control . RenderColor ) ;
15681568 }
15691569
1570- public void DrawSliderNotchesH ( Rectangle rect , double [ ] notches , int numNotches , float dist )
1570+ public void DrawSliderNotchesH ( Rectangle rect , double [ ] notches , int numNotches , float thickness , float notchLength )
15711571 {
15721572 if ( numNotches == 0 )
15731573 {
@@ -1587,15 +1587,15 @@ public void DrawSliderNotchesH(Rectangle rect, double[] notches, int numNotches,
15871587 {
15881588 foreach ( var notchPosition in notchPositions )
15891589 {
1590- Renderer . DrawFilledRect ( Util . FloatRect ( rect . X + ( float ) notchPosition , rect . Y + dist - 2 , 1 , 5 ) ) ;
1590+ Renderer . DrawFilledRect ( Util . FloatRect ( rect . X + ( float ) notchPosition , rect . Y , thickness , notchLength + thickness ) ) ;
15911591 }
15921592 }
15931593 else
15941594 {
15951595 var iSpacing = rect . Width / ( float ) numNotches ;
15961596 for ( var i = 0 ; i < numNotches + 1 ; i ++ )
15971597 {
1598- Renderer . DrawFilledRect ( Util . FloatRect ( rect . X + iSpacing * i , rect . Y + dist - 2 , 1 , 5 ) ) ;
1598+ Renderer . DrawFilledRect ( Util . FloatRect ( rect . X + iSpacing * i , rect . Y , thickness , notchLength + thickness ) ) ;
15991599 }
16001600 }
16011601 }
@@ -1655,7 +1655,7 @@ public override void DrawSlider(Control.Base control, bool horizontal, double[]
16551655 rect . Width -= barSize ;
16561656 rect . Y += ( int ) ( rect . Height * 0.5 - 1 ) ;
16571657 rect . Height = 1 ;
1658- DrawSliderNotchesH ( rect , notches , numNotches , barSize * 0.5f ) ;
1658+ DrawSliderNotchesH ( rect , notches , numNotches , rect . Height , barSize * 0.5f ) ;
16591659 Renderer . DrawFilledRect ( rect ) ;
16601660
16611661 return ;
0 commit comments