aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Geometry.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Geometry.h b/src/Geometry.h
index b4d10f496..bf8f4096e 100644
--- a/src/Geometry.h
+++ b/src/Geometry.h
@@ -179,10 +179,14 @@ public:
return ColourAlpha(co_ | (0xffu << 24));
}
- constexpr ColourAlpha Opaque() const noexcept {
+ constexpr ColourAlpha WithoutAlpha() const noexcept {
return ColourAlpha(co & 0xffffff);
}
+ constexpr ColourAlpha Opaque() const noexcept {
+ return ColourAlpha(co | (0xffu << 24));
+ }
+
constexpr int OpaqueRGB() const noexcept {
return co & 0xffffff;
}