1
0
mirror of synced 2025-02-21 21:10:27 +01:00

Fix BGR channels being swapped wrong

This commit is contained in:
KillzXGaming 2019-11-24 16:53:25 -05:00
parent d02ffca772
commit b021e96c52

View File

@ -639,6 +639,9 @@ namespace Toolbox.Library
byte[] imageData = new byte[0]; byte[] imageData = new byte[0];
bool DontSwapRG = false; bool DontSwapRG = false;
if (Format.ToString().StartsWith("B"))
DontSwapRG = true;
if (PlatformSwizzle == PlatformSwizzle.Platform_3DS) if (PlatformSwizzle == PlatformSwizzle.Platform_3DS)
{ {
imageData = CTR_3DS.DecodeBlock(data, (int)Width, (int)Height, Format); imageData = CTR_3DS.DecodeBlock(data, (int)Width, (int)Height, Format);