mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
i hate git...
This commit is contained in:
parent
f7910d59c4
commit
f45e837422
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ namespace Cosmos.System.Graphics
|
||||||
//now reading size of BITMAPINFOHEADER should be 40 - bytes 14 -> 18
|
//now reading size of BITMAPINFOHEADER should be 40 - bytes 14 -> 18
|
||||||
stream.Read(_int, 0, 4);
|
stream.Read(_int, 0, 4);
|
||||||
uint infoHeaderSize = BitConverter.ToUInt32(_int, 0);
|
uint infoHeaderSize = BitConverter.ToUInt32(_int, 0);
|
||||||
if (infoHeaderSize != 40 && infoHeaderSize != 56) // 56 - is BITMAPV3INFOHEADER, where we ignore the additional values see https://web.archive.org/web/20150127132443/https://forums.adobe.com/message/3272950
|
if (infoHeaderSize != 40 && infoHeaderSize != 56 && infoHeaderSize != 124) // 124 - is BITMAPV5INFOHEADER, 56 - is BITMAPV3INFOHEADER, where we ignore the additional values see https://web.archive.org/web/20150127132443/https://forums.adobe.com/message/3272950
|
||||||
{
|
{
|
||||||
throw new Exception("Info header size has the wrong value!");
|
throw new Exception("Info header size has the wrong value!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue