added broken implementation of ERI lossy images.

also reorganized Entis-related classes and enums. static math methods
moved to separate static class.
This commit is contained in:
morkt
2016-02-29 12:35:48 +04:00
parent 8d8dae710d
commit 6a89368023
6 changed files with 1546 additions and 513 deletions

View File

@@ -115,7 +115,7 @@ namespace GameRes.Formats.Entis
var earc = (EriMultiImage)arc;
var eent = (EriEntry)entry;
var pixels = earc.GetFrame (eent.FrameIndex);
if (32 == earc.Info.BPP && 0 == (earc.Info.FormatType & (int)EriImage.WithAlpha))
if (32 == earc.Info.BPP && 0 == (earc.Info.FormatType & EriType.WithAlpha))
{
for (int p = 3; p < pixels.Length; p += 4)
pixels[p] = 0xFF;