Browse Source
Update src/Avalonia.Headless/HeadlessWindowImpl.cs
Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/6812/head
workgroupengineering
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
src/Avalonia.Headless/HeadlessWindowImpl.cs
|
|
|
@ -199,9 +199,7 @@ namespace Avalonia.Headless |
|
|
|
|
|
|
|
public ILockedFramebuffer Lock() |
|
|
|
{ |
|
|
|
#pragma warning disable CS0618
|
|
|
|
var bmp = new WriteableBitmap(PixelSize.FromSize(ClientSize, RenderScaling), new Vector(96, 96) * RenderScaling); |
|
|
|
#pragma warning restore CS0618
|
|
|
|
var bmp = new WriteableBitmap(PixelSize.FromSize(ClientSize, RenderScaling), new Vector(96, 96) * RenderScaling, PixelFormat.Rgba8888, AlphaFormat.Premul); |
|
|
|
var fb = bmp.Lock(); |
|
|
|
return new FramebufferProxy(fb, () => |
|
|
|
{ |
|
|
|
|