The Free Software Media System - Server Backend & API
Remove redundant casts
Patrick Barronbd77f1e84ffa
diff --git a/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs b/Jellyfin.Drawing.Skia/PercentPlayedDrawer.csindex 85db737b88..ae9d4e0c49 100644--- a/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs+++ b/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs@@ -25,14 +25,14 @@ namespace Jellyfin.Drawing.Skiapaint.Color = SKColor.Parse("#99000000");paint.Style = SKPaintStyle.Fill;- canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, (float)endX, (float)endY), paint);+ canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, endX, endY), paint);double foregroundWidth = endX;foregroundWidth *= percent;foregroundWidth /= 100;paint.Color = SKColor.Parse("#FF00A4DC");- canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), (float)endY), paint);+ canvas.DrawRect(SKRect.Create(0, (float)endY - IndicatorHeight, Convert.ToInt32(foregroundWidth), endY), paint);}}}