Skip to content

Commit

Permalink
Remove dxcapable field.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 16, 2020
1 parent 2525d42 commit ef5f988
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ScreenCast.Win/Services/ScreenCapturerWin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public class ScreenCapturerWin : IScreenCapturer
{
private readonly Dictionary<string, int> bitBltScreens = new Dictionary<string, int>();
private readonly Dictionary<string, DirectXOutput> directxScreens = new Dictionary<string, DirectXOutput>();
private bool directXCapable = true;
public ScreenCapturerWin()
{
Init();
Expand Down Expand Up @@ -124,10 +123,7 @@ public void Init()
PreviousFrame = new Bitmap(CurrentScreenBounds.Width, CurrentScreenBounds.Height, PixelFormat.Format32bppArgb);

InitBitBlt();
if (directXCapable)
{
InitDirectX();
}
InitDirectX();

ScreenChanged?.Invoke(this, CurrentScreenBounds);
}
Expand Down Expand Up @@ -326,7 +322,6 @@ private void InitDirectX()
catch (Exception ex)
{
Logger.Write(ex);
directXCapable = false;
}
}

Expand Down

0 comments on commit ef5f988

Please sign in to comment.