Browse Source

Fixed use of stride in ImmutableBitmap ctor (#15520)

pull/15496/head
dbriard 2 years ago
committed by GitHub
parent
commit
37f756aa55
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Skia/Avalonia.Skia/ImmutableBitmap.cs

2
src/Skia/Avalonia.Skia/ImmutableBitmap.cs

@ -131,7 +131,7 @@ namespace Avalonia.Skia
{
tmp.InstallPixels(
new SKImageInfo(size.Width, size.Height, format.ToSkColorType(), alphaFormat.ToSkAlphaType()),
data);
data, stride);
_bitmap = tmp.Copy();
}
_bitmap.SetImmutable();

Loading…
Cancel
Save