aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-07-19 14:13:18 -0400
committerPatrick Barron <barronpm@gmail.com>2020-07-19 14:13:18 -0400
commitbd77f1e84ffad72ccf78231181f392a6948f58a7 (patch)
tree1220c2adf189d69d7fc67f1cd5b298a9020f9dc3
parent196e8e131a4d42dbdadb337bad72bd32e0c68624 (diff)
Remove redundant casts
-rw-r--r--Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs b/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs
index 85db737b8..ae9d4e0c4 100644
--- a/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs
+++ b/Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs
@@ -25,14 +25,14 @@ namespace Jellyfin.Drawing.Skia
paint.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);
}
}
}