Browse Source

Merge pull request #6760 from workgroupengineering/fixes/CS0618

fixes: Missing CS0618 warning suppression
pull/6776/head
Steven Kirk 5 years ago
committed by GitHub
parent
commit
66b2fa4ddb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.X11/X11IconLoader.cs

2
src/Avalonia.X11/X11IconLoader.cs

@ -77,7 +77,9 @@ namespace Avalonia.X11
public void Save(Stream outputStream)
{
using (var wr =
#pragma warning disable CS0618 // Type or member is obsolete
new WriteableBitmap(new PixelSize(_width, _height), new Vector(96, 96), PixelFormat.Bgra8888))
#pragma warning restore CS0618 // Type or member is obsolete
{
using (var fb = wr.Lock())
{

Loading…
Cancel
Save