Fixed #6267: adjust write_pixel_16 endian handling

This commit is contained in:
akallabeth 2020-06-08 07:09:07 +02:00 committed by akallabeth
parent 1b5e234135
commit 733026dada

View File

@ -232,7 +232,8 @@ static INLINE void write_pixel_24(BYTE* _buf, UINT32 _pix)
static INLINE void write_pixel_16(BYTE* _buf, UINT16 _pix)
{
*(UINT16*)_buf = _pix;
_buf[0] = _pix & 0xFF;
_buf[1] = (_pix >> 8) & 0xFF;
}
#undef DESTWRITEPIXEL