diff options
| author | Mark Monteiro <mark.monteiro23@gmail.com> | 2019-12-14 12:20:52 +0100 |
|---|---|---|
| committer | Mark Monteiro <mark.monteiro23@gmail.com> | 2019-12-14 12:20:52 +0100 |
| commit | c1c1672d0fd8169bc35ec3bd50754083303a88bd (patch) | |
| tree | 16f4685889b0bd270dad64350db9c24cc8fd91bb | |
| parent | c05933234a62850e1a4bde2ea5f9c1f7f7d3d3f8 (diff) | |
Fix remaining StyleCop warnings
| -rw-r--r-- | Jellyfin.Drawing.Skia/SkiaException.cs | 19 | ||||
| -rw-r--r-- | Jellyfin.Drawing.Skia/UnplayedCountIndicator.cs | 2 |
2 files changed, 18 insertions, 3 deletions
diff --git a/Jellyfin.Drawing.Skia/SkiaException.cs b/Jellyfin.Drawing.Skia/SkiaException.cs index 7aeaf083e..968d3a244 100644 --- a/Jellyfin.Drawing.Skia/SkiaException.cs +++ b/Jellyfin.Drawing.Skia/SkiaException.cs @@ -7,17 +7,30 @@ namespace Jellyfin.Drawing.Skia /// </summary> public class SkiaException : Exception { - /// <inheritdoc /> + /// <summary> + /// Initializes a new instance of the <see cref="SkiaException"/> class. + /// </summary> public SkiaException() : base() { } - /// <inheritdoc /> + /// <summary> + /// Initializes a new instance of the <see cref="SkiaException"/> class with a specified error message. + /// </summary> + /// <param name="message">The message that describes the error.</param> public SkiaException(string message) : base(message) { } - /// <inheritdoc /> + /// <summary> + /// Initializes a new instance of the <see cref="SkiaException"/> class with a specified error message and a + /// reference to the inner exception that is the cause of this exception. + /// </summary> + /// <param name="message">The error message that explains the reason for the exception.</param> + /// <param name="innerException"> + /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if + /// no inner exception is specified. + /// </param> public SkiaException(string message, Exception innerException) : base(message, innerException) { diff --git a/Jellyfin.Drawing.Skia/UnplayedCountIndicator.cs b/Jellyfin.Drawing.Skia/UnplayedCountIndicator.cs index 5cab1115f..a10fff9df 100644 --- a/Jellyfin.Drawing.Skia/UnplayedCountIndicator.cs +++ b/Jellyfin.Drawing.Skia/UnplayedCountIndicator.cs @@ -34,6 +34,7 @@ namespace Jellyfin.Drawing.Skia paint.Style = SKPaintStyle.Fill; canvas.DrawCircle((float)x, OffsetFromTopRightCorner, 20, paint); } + using (var paint = new SKPaint()) { paint.Color = new SKColor(255, 255, 255, 255); @@ -48,6 +49,7 @@ namespace Jellyfin.Drawing.Skia { x -= 7; } + if (text.Length == 2) { x -= 13; |
