diff --git a/Remotely_ScreenCast.Win/Capture/DXCapture.cs b/Remotely_ScreenCast.Win/Capture/DXCapture.cs index 7b2a414c..1f113ad7 100644 --- a/Remotely_ScreenCast.Win/Capture/DXCapture.cs +++ b/Remotely_ScreenCast.Win/Capture/DXCapture.cs @@ -49,6 +49,8 @@ namespace Remotely_ScreenCast.Win.Capture NeedsInit = false; } + PreviousFrame = (Bitmap)CurrentFrame.Clone(); + SharpDX.DXGI.Resource screenResource; OutputDuplicateFrameInformation duplicateFrameInformation; @@ -91,11 +93,10 @@ namespace Remotely_ScreenCast.Win.Capture bitmap.UnlockBits(mapDest); device.ImmediateContext.UnmapSubresource(screenTexture, 0); - PreviousFrame = (Bitmap)CurrentFrame.Clone(); - CurrentFrame = (Bitmap)bitmap.Clone(); - screenResource.Dispose(); duplicatedOutput.ReleaseFrame(); + + CurrentFrame = (Bitmap)bitmap.Clone(); } } catch (SharpDXException e) diff --git a/Remotely_Server/CurrentVersion.txt b/Remotely_Server/CurrentVersion.txt index 722bb629..fb1a1e30 100644 --- a/Remotely_Server/CurrentVersion.txt +++ b/Remotely_Server/CurrentVersion.txt @@ -1 +1 @@ -2019.05.22.0654 +2019.05.24.2024