Sfoglia il codice sorgente

Always allow D2D for the moment.

Steven Kirk 8 anni fa
parent
commit
804d1b66a1
1 ha cambiato i file con 1 aggiunte e 15 eliminazioni
  1. 1 15
      src/Windows/Avalonia.Direct2D1/Direct2DChecker.cs

+ 1 - 15
src/Windows/Avalonia.Direct2D1/Direct2DChecker.cs

@@ -10,20 +10,6 @@ namespace Avalonia.Direct2D1
     class Direct2DChecker : IModuleEnvironmentChecker
     {
         //Direct2D backend doesn't work on some machines anymore
-        public bool IsCompatible
-        {
-            get
-            {
-                try
-                {
-                    Direct2D1Platform.InitializeDirect2D();
-                    return true;
-                }
-                catch
-                {
-                    return false;
-                }
-            }
-        }
+        public bool IsCompatible => true;
     }
 }