Browse Source

Merge pull request #4946 from donandren/issues/macosinvalidate

remove redundant check for renderer so app can request macos native invalidate of window
danwalmsley 5 years ago
parent
commit
ef7525607e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Avalonia.Native/WindowImplBase.cs

+ 1 - 2
src/Avalonia.Native/WindowImplBase.cs

@@ -341,8 +341,7 @@ namespace Avalonia.Native
 
         public void Invalidate(Rect rect)
         {
-            if (!_deferredRendering && _native != null)
-                _native.Invalidate(new AvnRect { Height = rect.Height, Width = rect.Width, X = rect.X, Y = rect.Y });
+            _native?.Invalidate(new AvnRect { Height = rect.Height, Width = rect.Width, X = rect.X, Y = rect.Y });
         }
 
         public void SetInputRoot(IInputRoot inputRoot)