mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibGfx: Rename Color::from_rgba() => Color::from_argb()
This matches the rename of RGBA32 to ARGB32. It also makes more sense when you see it used with 32-bit hexadecimal literals: Before: Color::from_rgba(0xaarrggbb) After: Color::from_argb(0xaarrggbb)
This commit is contained in:
parent
5ace66a903
commit
a6a8ba80fc
11 changed files with 38 additions and 38 deletions
|
@ -245,7 +245,7 @@ Optional<Color> Color::from_string(StringView string)
|
|||
};
|
||||
|
||||
if (string.equals_ignoring_case("transparent"))
|
||||
return Color::from_rgba(0x00000000);
|
||||
return Color::from_argb(0x00000000);
|
||||
|
||||
for (size_t i = 0; !web_colors[i].name.is_null(); ++i) {
|
||||
if (string.equals_ignoring_case(web_colors[i].name))
|
||||
|
@ -346,7 +346,7 @@ ErrorOr<void> IPC::decode(IPC::Decoder& decoder, Color& color)
|
|||
{
|
||||
u32 rgba;
|
||||
TRY(decoder.decode(rgba));
|
||||
color = Color::from_rgba(rgba);
|
||||
color = Color::from_argb(rgba);
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue