mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(BMP): additional condition for bitmaps with alpha-channel.
This commit is contained in:
parent
431069d27e
commit
fd50e66837
@ -183,8 +183,10 @@ namespace GameRes
|
||||
{
|
||||
return ReadBitmapBGRA (file, info);
|
||||
}
|
||||
else if (0x18 == info.BPP && (info.ImageLength + width_x_height) == file.Length)
|
||||
else if (0x18 == info.BPP)
|
||||
{
|
||||
uint length_with_alpha = info.ImageLength + width_x_height;
|
||||
if (length_with_alpha == file.Length || length_with_alpha + info.Width == file.Length)
|
||||
return ReadBitmapWithAlpha (file, info);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user