Fix rtext default font alpha on Big Endian

This commit is contained in:
Paulo Medeiros 2024-12-20 16:48:22 -01:00
parent ab83e6dd41
commit daacdc0886

View File

@ -247,7 +247,11 @@ extern void LoadFontDefault(void)
// we must consider data as little-endian order (alpha + gray) // we must consider data as little-endian order (alpha + gray)
((unsigned short *)imFont.data)[i + j] = 0xffff; ((unsigned short *)imFont.data)[i + j] = 0xffff;
} }
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
else ((unsigned short *)imFont.data)[i + j] = 0x00ff; else ((unsigned short *)imFont.data)[i + j] = 0x00ff;
#else
else ((unsigned short *)imFont.data)[i + j] = 0xff00;
#endif
} }
counter++; counter++;