(TINK): tweaked 'c' type image reading.

This commit is contained in:
poddav 2022-04-29 13:26:37 +04:00
parent f6d9329c70
commit 03c03016d0

View File

@ -145,6 +145,8 @@ namespace GameRes.Formats.Cyberworks
{ {
var size_buf = new byte[4]; var size_buf = new byte[4];
input.Read (size_buf, 0 , 4); input.Read (size_buf, 0 , 4);
if ('c' == type)
input.ReadByte();
var decoder = new PngBitmapDecoder (input, BitmapCreateOptions.None, var decoder = new PngBitmapDecoder (input, BitmapCreateOptions.None,
BitmapCacheOption.OnLoad); BitmapCacheOption.OnLoad);
BitmapSource frame = decoder.Frames[0]; BitmapSource frame = decoder.Frames[0];