(svn r16628) -Codechange: remove one gcc2 hack

This commit is contained in:
smatz
2009-06-22 23:15:27 +00:00
parent 4f0e62deb6
commit d703f0c3b5
5 changed files with 16 additions and 17 deletions

View File

@@ -138,14 +138,15 @@ struct DrawPixelInfo {
};
/** Structure to access the alpha, red, green, and blue channels from a 32 bit number. */
struct Colour {
union Colour {
uint32 data; ///< Conversion of the channel information to a 32 bit number.
struct {
#if TTD_ENDIAN == TTD_BIG_ENDIAN
uint8 a, r, g, b; ///< colour channels in BE order
uint8 a, r, g, b; ///< colour channels in BE order
#else
uint8 b, g, r, a; ///< colour channels in LE order
uint8 b, g, r, a; ///< colour channels in LE order
#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
operator uint32 () const { return *(uint32 *)this; } ///< Conversion of the channel information to a 32 bit number.
};
};
/** Available font sizes */