diff --git a/include/components/x11/color.hpp b/include/components/x11/color.hpp index 1f0c04b9..d3a0a94d 100644 --- a/include/components/x11/color.hpp +++ b/include/components/x11/color.hpp @@ -47,7 +47,7 @@ class color { } uint32_t alpha() const { - return 0xFFFF & (((value() >> 24)) | ((value() >> 24))); + return 0xFFFF & (((value() >> 24) << 8) | ((value() >> 24))); } uint32_t red() const {