Browse Source

Fix for issue #2117

pull/2230/head
Brian Popow 4 years ago
parent
commit
353f2e2bd9
  1. 4
      src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs

4
src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs

@ -149,7 +149,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// <inheritdoc/> /// <inheritdoc/>
[MethodImpl(InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.ShortMethod)]
public void FromVector4(Vector4 vector) => this.Pack(ref vector); public void FromVector4(Vector4 vector) => this.Pack(vector);
/// <inheritdoc/> /// <inheritdoc/>
[MethodImpl(InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.ShortMethod)]
@ -302,7 +302,7 @@ namespace SixLabors.ImageSharp.PixelFormats
/// </summary> /// </summary>
/// <param name="vector">The vector containing the values to pack.</param> /// <param name="vector">The vector containing the values to pack.</param>
[MethodImpl(InliningOptions.ShortMethod)] [MethodImpl(InliningOptions.ShortMethod)]
private void Pack(ref Vector4 vector) private void Pack(Vector4 vector)
{ {
vector *= MaxBytes; vector *= MaxBytes;
vector += Half; vector += Half;

Loading…
Cancel
Save