Browse Source

Merge pull request #2230 from SixLabors/bp/FixIssue2117

Fix for issue #2117
pull/2234/head
James Jackson-South 3 years ago
committed by GitHub
parent
commit
8af5d8a732
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      .github/workflows/build-and-test.yml
  2. 4
      src/ImageSharp/PixelFormats/PixelImplementations/Bgra32.cs

26
.github/workflows/build-and-test.yml

@ -20,20 +20,18 @@ jobs:
sdk-preview: true
runtime: -x64
codecov: false
# Temp disabled due to runtime preview issues.
# https://github.com/SixLabors/ImageSharp/issues/2117
#- os: macos-latest
# framework: net7.0
# sdk: 7.0.x
# sdk-preview: true
# runtime: -x64
# codecov: false
#- os: windows-latest
# framework: net7.0
# sdk: 7.0.x
# sdk-preview: true
# runtime: -x64
# codecov: false
- os: macos-latest
framework: net7.0
sdk: 7.0.x
sdk-preview: true
runtime: -x64
codecov: false
- os: windows-latest
framework: net7.0
sdk: 7.0.x
sdk-preview: true
runtime: -x64
codecov: false
- os: ubuntu-latest
framework: net6.0
sdk: 6.0.x

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

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

Loading…
Cancel
Save