simplify pixel conversion loop
This commit is contained in:
parent
4f6965eef3
commit
9d21e0bbec
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue