diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-04 22:05:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-04 23:40:21 +0100 |
commit | 5ace66a9037fa6968b417cfb604ae8419be62271 (patch) | |
tree | acc383f50bfab4f576af6f80b5dffee02a036883 /Userland/Libraries/LibGfx/GIFLoader.cpp | |
parent | 5c4bb039266242ee606aceabba5926831de46e83 (diff) | |
download | serenity-5ace66a9037fa6968b417cfb604ae8419be62271.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibGfx/GIFLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/GIFLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/GIFLoader.cpp b/Userland/Libraries/LibGfx/GIFLoader.cpp index 6860d1ab6b..a715a08bfc 100644 --- a/Userland/Libraries/LibGfx/GIFLoader.cpp +++ b/Userland/Libraries/LibGfx/GIFLoader.cpp @@ -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()); |