From 9d21e0bbecb64243cf98e6c9a10ed5aa4ceed2bf Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 28 May 2022 19:17:33 -0400 Subject: simplify pixel conversion loop --- src/SMAPI/Framework/ContentManagers/ModContentManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit