summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-04 22:28:59 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-04 23:40:21 +0100
commita6a8ba80fc9c6bb9660407e3a501217602bcc1e3 (patch)
tree8def05897670a1675e6c4b6e8e30adb91fabf01e /Userland/Libraries/LibGL
parent5ace66a9037fa6968b417cfb604ae8419be62271 (diff)
downloadserenity-a6a8ba80fc9c6bb9660407e3a501217602bcc1e3.zip
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)
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r--Userland/Libraries/LibGL/SoftwareGLContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareGLContext.cpp b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
index d544787881..1d63bbc688 100644
--- a/Userland/Libraries/LibGL/SoftwareGLContext.cpp
+++ b/Userland/Libraries/LibGL/SoftwareGLContext.cpp
@@ -2305,7 +2305,7 @@ void SoftwareGLContext::gl_draw_pixels(GLsizei width, GLsizei height, GLenum for
auto pixel_data = static_cast<u32 const*>(data);
for (int y = 0; y < height; ++y)
for (int x = 0; x < width; ++x)
- bitmap->set_pixel(x, y, Color::from_rgba(*(pixel_data++)));
+ bitmap->set_pixel(x, y, Color::from_argb(*(pixel_data++)));
m_rasterizer.blit_to_color_buffer_at_raster_position(bitmap);
} else if (format == GL_DEPTH_COMPONENT) {