Browse Source
Merge pull request #6473 from workgroupengineering/fixes/Direct2DImageSurface_CS0649
fixes(Win32.Interop): field 'Direct2DImageSurface._oldDpi' is never a…
pull/6476/head
Benedikt Stebner
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
0 deletions
-
src/Windows/Avalonia.Win32.Interop/Wpf/Direct2DImageSurface.cs
|
|
|
@ -150,6 +150,7 @@ namespace Avalonia.Win32.Interop.Wpf |
|
|
|
if (_image == null || _oldDpi.X != dpi.X || _oldDpi.Y != dpi.Y) |
|
|
|
{ |
|
|
|
_image = new D3DImage(dpi.X, dpi.Y); |
|
|
|
_oldDpi = dpi; |
|
|
|
} |
|
|
|
_impl.ImageSource = _image; |
|
|
|
|
|
|
|
|