From d4c8b01e1855acca25c05677dfffe0c1b18bfa5c Mon Sep 17 00:00:00 2001 From: Gl0 Date: Sun, 25 Dec 2016 01:42:55 +0300 Subject: [PATCH] Force software rendering if allow_transparency = false, fix #279 --- DamageMeter.UI/App.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DamageMeter.UI/App.xaml.cs b/DamageMeter.UI/App.xaml.cs index 8ffecf49..883063f7 100644 --- a/DamageMeter.UI/App.xaml.cs +++ b/DamageMeter.UI/App.xaml.cs @@ -8,6 +8,8 @@ using System.Threading; using System.Threading.Tasks; using System.Windows; +using System.Windows.Interop; +using System.Windows.Media; using DamageMeter.AutoUpdate; using Data; using log4net; @@ -55,6 +57,7 @@ private async void App_OnStartup(object sender, StartupEventArgs e) LP.Culture = CultureInfo.GetCultureInfo(BasicTeraData.Instance.WindowData.UILanguage); FormatHelpers.Instance.CultureInfo = LP.Culture; } + if (!BasicTeraData.Instance.WindowData.AllowTransparency) RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly; if (!BasicTeraData.Instance.WindowData.AutoUpdate) { return;