aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs')
-rw-r--r--Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs b/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
index 915147d2a..1d7b4d7d4 100644
--- a/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
+++ b/Software/Visual_Studio/Tango.RemoteDesktop/ScreenCaptureEngine.cs
@@ -151,19 +151,19 @@ namespace Tango.RemoteDesktop
if (_previousBitmap == null)
{
_previousBitmap = bitmap.Clone() as Bitmap;
- OnFrameReceived(bitmap, null, false);
+ OnFrameReceived(bitmap, null, 0);
}
else
{
var result = Comparer.CreateDifference(_previousBitmap, bitmap);
_previousBitmap.Dispose();
_previousBitmap = bitmap.Clone() as Bitmap;
- OnFrameReceived(bitmap, result.Frame, result.ContainsDifference);
+ OnFrameReceived(bitmap, result.Frame, result.DifferenceCount);
}
}
else
{
- OnFrameReceived(bitmap, null, false);
+ OnFrameReceived(bitmap, null, 0);
}
int delay = Math.Max(5, (FrameRate * 10) - (int)watch.ElapsedMilliseconds);
@@ -171,13 +171,13 @@ namespace Tango.RemoteDesktop
}
}
- private void OnFrameReceived(Bitmap currentBitmap, TFrame diffFrame, bool hasDifference)
+ private void OnFrameReceived(Bitmap currentBitmap, TFrame diffFrame, uint differenceCount)
{
FrameReceived?.Invoke(this, new ScreenCaptureFrameReceivedEventArgs<TFrame>()
{
Frame = new ScreenCaptureFrame<TFrame>(currentBitmap, diffFrame)
{
- HasDifference = hasDifference
+ DifferenceCount = differenceCount
}
});
}