Palette header comes *after* the frame. Fixes #3728.
This commit is contained in:
@@ -53,15 +53,11 @@ namespace OpenRA.FileFormats
|
|||||||
// Skip alignment byte
|
// Skip alignment byte
|
||||||
s.ReadUInt8();
|
s.ReadUInt8();
|
||||||
|
|
||||||
// Ignore palette header
|
|
||||||
if (type == 1 && paletteOffset != 0)
|
|
||||||
s.Seek(8, SeekOrigin.Current);
|
|
||||||
|
|
||||||
Image = s.ReadBytes(width*height);
|
Image = s.ReadBytes(width*height);
|
||||||
|
|
||||||
// Ignore palette data
|
// Ignore palette
|
||||||
if (type == 1 && paletteOffset != 0)
|
if (type == 1 && paletteOffset != 0)
|
||||||
s.Seek(512, SeekOrigin.Current);
|
s.Seek(520, SeekOrigin.Current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user