Browse Source
Merge pull request #5155 from AvaloniaUI/fixes/egl-init-windows
[Windows] only enable egl by default on platforms where its stable.
pull/5161/head
Dan Walmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
3 deletions
-
samples/ControlCatalog.NetCore/Program.cs
-
src/Windows/Avalonia.Win32/Win32Platform.cs
|
|
|
@ -113,8 +113,7 @@ namespace ControlCatalog.NetCore |
|
|
|
}) |
|
|
|
.With(new Win32PlatformOptions |
|
|
|
{ |
|
|
|
EnableMultitouch = true, |
|
|
|
AllowEglInitialization = true |
|
|
|
EnableMultitouch = true |
|
|
|
}) |
|
|
|
.UseSkia() |
|
|
|
.UseManagedSystemDialogs() |
|
|
|
|
|
|
|
@ -17,6 +17,7 @@ using Avalonia.Platform; |
|
|
|
using Avalonia.Rendering; |
|
|
|
using Avalonia.Threading; |
|
|
|
using Avalonia.Utilities; |
|
|
|
using Avalonia.Win32; |
|
|
|
using Avalonia.Win32.Input; |
|
|
|
using Avalonia.Win32.Interop; |
|
|
|
using static Avalonia.Win32.Interop.UnmanagedMethods; |
|
|
|
@ -39,7 +40,7 @@ namespace Avalonia |
|
|
|
public class Win32PlatformOptions |
|
|
|
{ |
|
|
|
public bool UseDeferredRendering { get; set; } = true; |
|
|
|
public bool AllowEglInitialization { get; set; } = true; |
|
|
|
public bool AllowEglInitialization { get; set; } = Win32Platform.WindowsVersion > new Version(6, 1); |
|
|
|
public bool? EnableMultitouch { get; set; } |
|
|
|
public bool OverlayPopups { get; set; } |
|
|
|
public bool UseWgl { get; set; } |
|
|
|
|