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/LibGL | |
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/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareGLContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp index d6424d67be..d544787881 100644 --- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp +++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp @@ -1706,7 +1706,7 @@ void SoftwareGLContext::gl_read_pixels(GLint x, GLint y, GLsizei width, GLsizei char* out_ptr = reinterpret_cast<char*>(pixels); for (int i = 0; i < (int)height; ++i) { for (int j = 0; j < (int)width; ++j) { - Gfx::RGBA32 color {}; + Gfx::ARGB32 color {}; if (m_current_read_buffer == GL_FRONT || m_current_read_buffer == GL_LEFT || m_current_read_buffer == GL_FRONT_LEFT) { if (y + i >= m_frontbuffer->width() || x + j >= m_frontbuffer->height()) color = 0; |