diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-05-28 19:17:33 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-06-10 00:04:25 -0400 |
commit | 9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf (patch) | |
tree | 0f2a196a218c131b830f5f00497cfd016f8f1679 /src/SMAPI/Framework | |
parent | 4f6965eef3c7690dcfc1e1946362a84f68f40767 (diff) | |
download | SMAPI-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.cs | 2 |
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 |