Skip to content

Commit

Permalink
Force software rendering if allow_transparency = false, fix #279
Browse files Browse the repository at this point in the history
  • Loading branch information
Gl0 committed Dec 24, 2016
1 parent 5b0ce2c commit d4c8b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DamageMeter.UI/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d4c8b01

Please sign in to comment.