mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
LibGfx: Rename RGBA32 => ARGB32
The ARGB32 typedef is used for 32-bit #AARRGGBB quadruplets. As such, the name RGBA32 was misleading, so let's call it ARGB32 instead. Since endianness is a thing, let's not encode any assumptions about byte order in the name of this type. ARGB32 is basically a "machine word" of color.
This commit is contained in:
parent
5c4bb03926
commit
5ace66a903
14 changed files with 84 additions and 84 deletions
|
@ -78,12 +78,12 @@ Optional<Color> Color::from_string(StringView string)
|
|||
return {};
|
||||
|
||||
struct ColorAndWebName {
|
||||
constexpr ColorAndWebName(RGBA32 c, char const* n)
|
||||
constexpr ColorAndWebName(ARGB32 c, char const* n)
|
||||
: color(c)
|
||||
, name(n)
|
||||
{
|
||||
}
|
||||
RGBA32 color;
|
||||
ARGB32 color;
|
||||
StringView name;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue