Skip to content

Commit

Permalink
Merge pull request #86 from Soreepeong/patch-1
Browse files Browse the repository at this point in the history
Fix AppendBgraIntExpressionFromRgba
  • Loading branch information
NotAdam authored Aug 4, 2024
2 parents bb7d836 + 7bf2bda commit e99b736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lumina/Text/SeStringBuilder.UIntColors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed partial class SeStringBuilder
/// <remarks>See <a href="https://learn.microsoft.com/en-us/windows/win32/wic/-wic-codec-native-pixel-formats#rgbbgr-color-model">RGB/BGR color model</a>
/// if the naming gets confusing.</remarks>
public SeStringBuilder AppendBgraIntExpressionFromRgba( uint rgba ) =>
AppendUIntExpression( ( rgba & 0xFF00FF00 ) | ( rgba >> 16 ) | ( ( rgba & 0xFF ) << 16 ) );
AppendUIntExpression( ( rgba & 0xFF00FF00 ) | ( ( rgba >> 16 ) & 0xFF ) | ( ( rgba & 0xFF ) << 16 ) );

/// <summary>Appends a BGRA integer calculated from BGRA values as an expression.</summary>
/// <param name="rgba">A normalized RGBA <see cref="System.Numerics.Vector4"/> value to append.</param>
Expand Down

0 comments on commit e99b736

Please sign in to comment.