From 965c5ecfc5086151db90a88329eefb93bc187900 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Thu, 16 Apr 2020 08:46:45 -0700 Subject: [PATCH] Remove dxcapable field. --- ScreenCast.Win/Services/ScreenCapturerWin.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ScreenCast.Win/Services/ScreenCapturerWin.cs b/ScreenCast.Win/Services/ScreenCapturerWin.cs index d88df033..18800411 100644 --- a/ScreenCast.Win/Services/ScreenCapturerWin.cs +++ b/ScreenCast.Win/Services/ScreenCapturerWin.cs @@ -42,7 +42,6 @@ namespace Remotely.ScreenCast.Win.Services { private readonly Dictionary bitBltScreens = new Dictionary(); private readonly Dictionary directxScreens = new Dictionary(); - private bool directXCapable = true; public ScreenCapturerWin() { Init(); @@ -124,10 +123,7 @@ namespace Remotely.ScreenCast.Win.Services PreviousFrame = new Bitmap(CurrentScreenBounds.Width, CurrentScreenBounds.Height, PixelFormat.Format32bppArgb); InitBitBlt(); - if (directXCapable) - { - InitDirectX(); - } + InitDirectX(); ScreenChanged?.Invoke(this, CurrentScreenBounds); } @@ -326,7 +322,6 @@ namespace Remotely.ScreenCast.Win.Services catch (Exception ex) { Logger.Write(ex); - directXCapable = false; } }