Browse Source
Merge pull request #6812 from workgroupengineering/fixes/Warnings_CS0618_Missing
fixes: Missing CS0618
pull/6854/head
Tako
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
1 deletions
-
src/Avalonia.Headless/HeadlessWindowImpl.cs
|
|
|
@ -199,7 +199,7 @@ namespace Avalonia.Headless |
|
|
|
|
|
|
|
public ILockedFramebuffer Lock() |
|
|
|
{ |
|
|
|
var bmp = new WriteableBitmap(PixelSize.FromSize(ClientSize, RenderScaling), new Vector(96, 96) * RenderScaling); |
|
|
|
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, () => |
|
|
|
{ |
|
|
|
|