From Colin McDonald, fix for big endian systems

This commit is contained in:
Robert Osfield
2005-08-30 19:19:49 +00:00
parent f9bcde3cf0
commit 07c7e37426

View File

@@ -191,6 +191,7 @@ int *numComponents_ret)
swapbyte(&inf.width);
swapbyte(&inf.height);
swapbyte(&inf.ImageSize);
swapbyte(&inf.ColorUsed);
}
if (infsize==12) { // os2, protect us from our friends ? || infsize==64
int wd = inf.width&0xffff; // shorts replace longs