fix: Alpha channel out of line

This commit is contained in:
Michael Carlberg 2016-10-30 08:04:59 +01:00
parent c9af239516
commit 2f7ec4ceee

View File

@ -47,7 +47,7 @@ class color {
} }
uint32_t alpha() const { uint32_t alpha() const {
return 0xFFFF & (((value() >> 24)) | ((value() >> 24))); return 0xFFFF & (((value() >> 24) << 8) | ((value() >> 24)));
} }
uint32_t red() const { uint32_t red() const {