浏览代码

remove redundant check for renderer so app can request macos native invalidate of window

Andrey Kunchev 5 年之前
父节点
当前提交
d1156c7f1f
共有 1 个文件被更改,包括 1 次插入2 次删除
  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)