mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37: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
|
@ -251,8 +251,8 @@ static void clear_rect(Bitmap& bitmap, const IntRect& rect, Color color)
|
|||
if (intersection_rect.is_empty())
|
||||
return;
|
||||
|
||||
RGBA32* dst = bitmap.scanline(intersection_rect.top()) + intersection_rect.left();
|
||||
const size_t dst_skip = bitmap.pitch() / sizeof(RGBA32);
|
||||
ARGB32* dst = bitmap.scanline(intersection_rect.top()) + intersection_rect.left();
|
||||
const size_t dst_skip = bitmap.pitch() / sizeof(ARGB32);
|
||||
|
||||
for (int i = intersection_rect.height() - 1; i >= 0; --i) {
|
||||
fast_u32_fill(dst, color.value(), intersection_rect.width());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue