From 7bf2bdaf6b5f62ad33a9c94668f5d7a68e298bc3 Mon Sep 17 00:00:00 2001 From: Soreepeong Date: Sun, 4 Aug 2024 15:31:14 +0900 Subject: [PATCH] Fix AppendBgraIntExpressionFromRgba Forgot to extract the least significant byte, after bitshifting. --- src/Lumina/Text/SeStringBuilder.UIntColors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lumina/Text/SeStringBuilder.UIntColors.cs b/src/Lumina/Text/SeStringBuilder.UIntColors.cs index 7c822abb..de86c57e 100644 --- a/src/Lumina/Text/SeStringBuilder.UIntColors.cs +++ b/src/Lumina/Text/SeStringBuilder.UIntColors.cs @@ -31,7 +31,7 @@ public sealed partial class SeStringBuilder /// See RGB/BGR color model /// if the naming gets confusing. public SeStringBuilder AppendBgraIntExpressionFromRgba( uint rgba ) => - AppendUIntExpression( ( rgba & 0xFF00FF00 ) | ( rgba >> 16 ) | ( ( rgba & 0xFF ) << 16 ) ); + AppendUIntExpression( ( rgba & 0xFF00FF00 ) | ( ( rgba >> 16 ) & 0xFF ) | ( ( rgba & 0xFF ) << 16 ) ); /// Appends a BGRA integer calculated from BGRA values as an expression. /// A normalized RGBA value to append.