summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/GIFLoader.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-04 22:05:20 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-04 23:40:21 +0100
commit5ace66a9037fa6968b417cfb604ae8419be62271 (patch)
treeacc383f50bfab4f576af6f80b5dffee02a036883 /Userland/Libraries/LibGfx/GIFLoader.cpp
parent5c4bb039266242ee606aceabba5926831de46e83 (diff)
downloadserenity-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.cpp4
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());