From 84ecd4943905f79bdde310890faaf425ea9581cf Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sun, 24 Sep 2023 15:40:56 -0500 Subject: [PATCH] Fix slider clipping left most pixel of fill bar. --- Source/Engine/UI/GUI/Common/Slider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/UI/GUI/Common/Slider.cs b/Source/Engine/UI/GUI/Common/Slider.cs index 7ea2accef..6dbd5082c 100644 --- a/Source/Engine/UI/GUI/Common/Slider.cs +++ b/Source/Engine/UI/GUI/Common/Slider.cs @@ -268,7 +268,7 @@ public class Slider : ContainerControl // Draw track fill if (FillTrack) { - var fillLineRect = new Rectangle(_thumbSize.X / 2, (Height - TrackHeight - 2) / 2, Width - (Width - _thumbCenter) - _thumbSize.X / 2, TrackHeight + 2); + var fillLineRect = new Rectangle(_thumbSize.X / 2 - 1, (Height - TrackHeight - 2) / 2, Width - (Width - _thumbCenter) - _thumbSize.X / 2, TrackHeight + 2); Render2D.PushClip(ref fillLineRect); if (FillTrackBrush != null) FillTrackBrush.Draw(lineRect, TrackFillLineColor);