summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-28 19:17:33 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-06-10 00:04:25 -0400
commit9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf (patch)
tree0f2a196a218c131b830f5f00497cfd016f8f1679 /src/SMAPI/Framework
parent4f6965eef3c7690dcfc1e1946362a84f68f40767 (diff)
downloadSMAPI-9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf.tar.gz
SMAPI-9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf.tar.bz2
SMAPI-9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf.zip
simplify pixel conversion loop
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
index fb031ccb..e1d9ce78 100644
--- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
@@ -245,7 +245,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
// convert to XNA pixel format
pixels = new Color[rawPixels.Length];
- for (int i = pixels.Length - 1; i >= 0; i--)
+ for (int i = 0; i < pixels.Length; i++)
{
SKPMColor pixel = rawPixels[i];
pixels[i] = pixel.Alpha == 0