diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-10 05:36:32 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-10 05:36:32 +0100 |
commit | 305aa25aaea63a1516094992d48f800a58a7715b (patch) | |
tree | e1dc8d952587d4d13bec65f3d935e87cc3fb247e /Widgets/Color.h | |
parent | df799e6d7b917aea1f84a89a8ea72bc31879d5fb (diff) | |
download | serenity-305aa25aaea63a1516094992d48f800a58a7715b.zip |
Let's have an RGBA32 typedef for raw pixel data.
Diffstat (limited to 'Widgets/Color.h')
-rw-r--r-- | Widgets/Color.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Widgets/Color.h b/Widgets/Color.h index 28abafc2e8..9e2e5ca389 100644 --- a/Widgets/Color.h +++ b/Widgets/Color.h @@ -2,6 +2,8 @@ #include <AK/Types.h> +typedef dword RGBA32; + class Color { public: enum NamedColor { @@ -19,8 +21,8 @@ public: Color(NamedColor); Color(byte r, byte g, byte b); - dword value() const { return m_value; } + RGBA32 value() const { return m_value; } private: - dword m_value { 0 }; + RGBA32 m_value { 0 }; }; |