From 2f7ec4ceeed3e3429fb7b33c62477efadf3bdbfa Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Sun, 30 Oct 2016 08:04:59 +0100 Subject: [PATCH] fix: Alpha channel out of line --- include/components/x11/color.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {