Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect colour value interpretation in the FreeType renderer (#536
) BIG_ENDIAN might be defined by system headers, and it apparently is on both Linux and recent macOS versions. Get rid of this completely, replace the union by a struct and use endianness-independent constructs to obtain the values of individual colour channels. Also fix some minor warnings in the renderer code. Fixes #507.
- Loading branch information
Showing
1 changed file
with
18 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters