Skip to content

Commit

Permalink
WPF force software rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
slgray committed Mar 2, 2021
1 parent e35c8fe commit bfb9af7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/SyncTrayzor/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System.Windows;
using System.Windows;
using System.Windows.Interop;
using System.Windows.Media;

namespace SyncTrayzor
{
Expand All @@ -7,5 +9,11 @@ namespace SyncTrayzor
/// </summary>
public partial class App : Application
{
// WPF force software rendering
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
}
}
}

0 comments on commit bfb9af7

Please sign in to comment.