Browse Source
Merge branch 'master' into fixes/animationinstance-unsubscribe
pull/6072/head
Jumar Macato
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.Controls/Remote/RemoteWidget.cs
|
|
|
@ -70,7 +70,7 @@ namespace Avalonia.Controls.Remote |
|
|
|
|
|
|
|
public override void Render(DrawingContext context) |
|
|
|
{ |
|
|
|
if (_lastFrame != null) |
|
|
|
if (_lastFrame != null && _lastFrame.Width != 0 && _lastFrame.Height != 0) |
|
|
|
{ |
|
|
|
var fmt = (PixelFormat) _lastFrame.Format; |
|
|
|
if (_bitmap == null || _bitmap.PixelSize.Width != _lastFrame.Width || |
|
|
|
|