mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 20:50:44 +00:00
swap only if 16 or 32 bits, otherwise endianness has no meaningwq
This commit is contained in:
parent
f77370178a
commit
22dbbbb1f6
1 changed files with 2 additions and 1 deletions
|
@ -540,7 +540,8 @@ NSTiffWrite(TIFF *image, NSTiffInfo *info, unsigned char *data)
|
|||
scan_line_size = TIFFScanlineSize(image);
|
||||
|
||||
// check if image endianness is different from Host
|
||||
if ((info->isBigEndian != 0) != (NSHostByteOrder() == NS_BigEndian))
|
||||
if ((info->isBigEndian != 0) != (NSHostByteOrder() == NS_BigEndian) &&
|
||||
(info->is16Bit || info->is32Bit))
|
||||
{
|
||||
swapByteOrder = YES;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue