From 52c84c4975d75baf313243d422d96581daca19bf Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 13 Apr 2023 05:53:40 +0200 Subject: Remove `border_radius` support for `slider::Rail` Our current quad shader may produce weird-looking results with non-integral scaling factors. --- native/src/widget/slider.rs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'native/src/widget/slider.rs') diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index 69c06140..199dc9b3 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -405,13 +405,7 @@ pub fn draw( width: offset, height: style.rail.width, }, - border_radius: [ - style.rail.border_radius, - 0.0, - 0.0, - style.rail.border_radius, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, @@ -426,13 +420,7 @@ pub fn draw( width: bounds.width - offset, height: style.rail.width, }, - border_radius: [ - 0.0, - style.rail.border_radius, - style.rail.border_radius, - 0.0, - ] - .into(), + border_radius: Default::default(), border_width: 0.0, border_color: Color::TRANSPARENT, }, -- cgit