From 971b39ae4f2867955079e2b98579ff2f7a56c8e0 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 30 Jan 2022 14:39:02 +0100 Subject: [PATCH] LibSoftGPU: Rename `rgba` to `bgra` to reflect actual value --- Userland/Libraries/LibSoftGPU/Device.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp index b66f2f11c9..f026927b74 100644 --- a/Userland/Libraries/LibSoftGPU/Device.cpp +++ b/Userland/Libraries/LibSoftGPU/Device.cpp @@ -83,14 +83,14 @@ ALWAYS_INLINE static u32x4 to_bgra32(Vector4 const& v) return a << 24 | r << 16 | g << 8 | b; } -static Vector4 to_vec4(u32x4 rgba) +static Vector4 to_vec4(u32x4 bgra) { auto constexpr one_over_255 = expand4(1.0f / 255); return { - to_f32x4((rgba >> 16) & 0xff) * one_over_255, - to_f32x4((rgba >> 8) & 0xff) * one_over_255, - to_f32x4(rgba & 0xff) * one_over_255, - to_f32x4((rgba >> 24) & 0xff) * one_over_255, + to_f32x4((bgra >> 16) & 0xff) * one_over_255, + to_f32x4((bgra >> 8) & 0xff) * one_over_255, + to_f32x4(bgra & 0xff) * one_over_255, + to_f32x4((bgra >> 24) & 0xff) * one_over_255, }; }