Browse Source

make win.ui.comp the default when running on win10 and compatible gpu is used.

tmp-winuicomp_with_manual_fbo
Dan Walmsley 6 years ago
parent
commit
099909d4e2
  1. 3
      samples/ControlCatalog.NetCore/Program.cs
  2. 2
      src/Windows/Avalonia.Win32/Win32Platform.cs

3
samples/ControlCatalog.NetCore/Program.cs

@ -117,8 +117,7 @@ namespace ControlCatalog.NetCore
.With(new Win32PlatformOptions .With(new Win32PlatformOptions
{ {
EnableMultitouch = true, EnableMultitouch = true,
AllowEglInitialization = true, AllowEglInitialization = true
UseWindowsUIComposition = true
}) })
.UseSkia() .UseSkia()
.UseReactiveUI() .UseReactiveUI()

2
src/Windows/Avalonia.Win32/Win32Platform.cs

@ -47,7 +47,7 @@ namespace Avalonia
/// Supported on Windows 10 build 16299 and above. Ignored on other versions. /// Supported on Windows 10 build 16299 and above. Ignored on other versions.
/// This is recommended if you need to use AcrylicBlur or acrylic in your applications. /// This is recommended if you need to use AcrylicBlur or acrylic in your applications.
/// </remarks> /// </remarks>
public bool UseWindowsUIComposition { get; set; } public bool UseWindowsUIComposition { get; set; } = true;
} }
} }

Loading…
Cancel
Save