From 77eba9cc445dbf19b162681919c319a0a73aef6f Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Fri, 14 Dec 2018 17:46:43 +0100 Subject: [PATCH] Address comments --- Emby.Drawing.Skia/SkiaEncoder.cs | 13 ++++++++----- RSSDP/SsdpRootDevice.cs | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Emby.Drawing.Skia/SkiaEncoder.cs b/Emby.Drawing.Skia/SkiaEncoder.cs index 02e10f693c..9eb7055b4a 100644 --- a/Emby.Drawing.Skia/SkiaEncoder.cs +++ b/Emby.Drawing.Skia/SkiaEncoder.cs @@ -230,7 +230,7 @@ namespace Emby.Drawing.Skia return tempPath; } - private static SKEncodedOrigin GetSKCodecOrigin(ImageOrientation? orientation) + private static SKEncodedOrigin GetSKEncodedOrigin(ImageOrientation? orientation) { if (!orientation.HasValue) { @@ -275,7 +275,7 @@ namespace Emby.Drawing.Skia { if (codec == null) { - origin = GetSKCodecOrigin(orientation); + origin = GetSKEncodedOrigin(orientation); return null; } @@ -291,7 +291,7 @@ namespace Emby.Drawing.Skia } else { - origin = GetSKCodecOrigin(orientation); + origin = GetSKEncodedOrigin(orientation); } return bitmap; @@ -594,7 +594,10 @@ namespace Emby.Drawing.Skia if (hasForegroundColor) { Double opacity; - if (!Double.TryParse(options.ForegroundLayer, out opacity)) opacity = .4; + if (!Double.TryParse(options.ForegroundLayer, out opacity)) + { + opacity = .4; + } canvas.DrawColor(new SKColor(0, 0, 0, (Byte)((1 - opacity) * 0xFF)), SKBlendMode.SrcOver); } @@ -676,4 +679,4 @@ namespace Emby.Drawing.Skia get { return true; } } } -} \ No newline at end of file +} diff --git a/RSSDP/SsdpRootDevice.cs b/RSSDP/SsdpRootDevice.cs index 6d0fcafbbb..eaf3f6a384 100644 --- a/RSSDP/SsdpRootDevice.cs +++ b/RSSDP/SsdpRootDevice.cs @@ -76,4 +76,4 @@ namespace Rssdp #endregion } -} \ No newline at end of file +}