diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-21 20:12:18 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-10-21 20:12:18 -0400 |
commit | 9ae69245b30f5cc6b52f1159a6e151079b699a10 (patch) | |
tree | 2e90d87dad6832714ff01d0c248a502f87271466 /src/SMAPI/Framework/Content | |
parent | ce00f8ff878860f2476a962b60ec2d8b3b5b2a2e (diff) | |
parent | 8090b30c6e489ae213493328d6f84f15ca18a592 (diff) | |
download | SMAPI-9ae69245b30f5cc6b52f1159a6e151079b699a10.tar.gz SMAPI-9ae69245b30f5cc6b52f1159a6e151079b699a10.tar.bz2 SMAPI-9ae69245b30f5cc6b52f1159a6e151079b699a10.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r-- | src/SMAPI/Framework/Content/AssetDataForImage.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs index 241c09a8..7c8cc6a8 100644 --- a/src/SMAPI/Framework/Content/AssetDataForImage.cs +++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs @@ -192,7 +192,7 @@ namespace StardewModdingAPI.Framework.Content int topOffset = startIndex / sourceArea.Width; int bottomOffset = endIndex / sourceArea.Width; - targetArea = new(targetArea.X, targetArea.Y + topOffset, targetArea.Width, bottomOffset - topOffset + 1); + targetArea = new(targetArea.X, targetArea.Y + topOffset - startRow, targetArea.Width, bottomOffset - topOffset + 1); pixelCount = targetArea.Width * targetArea.Height; sourceOffset = topOffset * sourceArea.Width; } |