From 87fa9df020e660675bd3c6205d643cf4a40c0471 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 3 Feb 2018 19:55:22 +0400 Subject: [PATCH] (MGD): apparently alpha channel is not inverted. --- ArcFormats/NSystem/ImageMGD.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArcFormats/NSystem/ImageMGD.cs b/ArcFormats/NSystem/ImageMGD.cs index c250dd1e..6abc4829 100644 --- a/ArcFormats/NSystem/ImageMGD.cs +++ b/ArcFormats/NSystem/ImageMGD.cs @@ -138,7 +138,7 @@ namespace GameRes.Formats.NSystem if (count < 0) { count = (count & 0x7FFF) + 1; - byte a = (byte)~m_input.ReadUInt8(); + byte a = m_input.ReadUInt8(); length--; for (int i = 0; i < count; ++i) { @@ -150,7 +150,7 @@ namespace GameRes.Formats.NSystem { for (int i = 0; i < count; ++i) { - m_output[dst] = (byte)~m_input.ReadUInt8(); + m_output[dst] = m_input.ReadUInt8(); dst += 4; } length -= count;