Browse Source

Remove redundant casts

Patrick Barron 4 years ago
parent
commit
bd77f1e84f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs

+ 2 - 2
Jellyfin.Drawing.Skia/PercentPlayedDrawer.cs

@@ -25,14 +25,14 @@ namespace Jellyfin.Drawing.Skia
 
 
             paint.Color = SKColor.Parse("#99000000");
             paint.Color = SKColor.Parse("#99000000");
             paint.Style = SKPaintStyle.Fill;
             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;
             double foregroundWidth = endX;
             foregroundWidth *= percent;
             foregroundWidth *= percent;
             foregroundWidth /= 100;
             foregroundWidth /= 100;
 
 
             paint.Color = SKColor.Parse("#FF00A4DC");
             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);
         }
         }
     }
     }
 }
 }