simplify pixel conversion loop

This commit is contained in:
Jesse Plamondon-Willard 2022-05-28 19:17:33 -04:00
parent 4f6965eef3
commit 9d21e0bbec
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
// convert to XNA pixel format // convert to XNA pixel format
pixels = new Color[rawPixels.Length]; 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]; SKPMColor pixel = rawPixels[i];
pixels[i] = pixel.Alpha == 0 pixels[i] = pixel.Alpha == 0