diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2024-08-17 17:33:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-17 17:33:16 +0100 |
| commit | 92744b5b9aa386257bf243c957ab64f7f4171a19 (patch) | |
| tree | 0caa6fdf3ca91c81e89ef21ddac3c6ecf6794b1b /src/helpers/Color.cpp | |
| parent | c5feee1e357f3c3c59ebe406630601c627807963 (diff) | |
IPC: Add config descriptions (#7377)
Thanks @gulafaran for the work
---
Co-authored-by: @gulafaran
Diffstat (limited to 'src/helpers/Color.cpp')
| -rw-r--r-- | src/helpers/Color.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/Color.cpp b/src/helpers/Color.cpp index 67526dc7..f9a207bb 100644 --- a/src/helpers/Color.cpp +++ b/src/helpers/Color.cpp @@ -21,6 +21,6 @@ CColor::CColor(uint64_t hex) { this->a = ALPHA(hex); } -uint32_t CColor::getAsHex() { +uint32_t CColor::getAsHex() const { return (uint32_t)(a * 255.f) * 0x1000000 + (uint32_t)(r * 255.f) * 0x10000 + (uint32_t)(g * 255.f) * 0x100 + (uint32_t)(b * 255.f) * 0x1; }
\ No newline at end of file |
