From f2f719985dc2556c403a36f8e93c7c35d7ad8a83 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Mon, 24 Jan 2022 01:22:54 +1100 Subject: [PATCH] Mac fixes --- .../Transforms/Linear/AffineTransformProcessor{TPixel}.cs | 4 ++-- .../Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs index 1cd2514659..f6fadca33e 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs @@ -266,9 +266,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) { diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs index fc2cb0c851..26b970d8b5 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs @@ -265,9 +265,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) {