mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04:13 +08:00
(TINK): tweaked 'c' type image reading.
This commit is contained in:
parent
f6d9329c70
commit
03c03016d0
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user