From afdd0a07be6a669cdd8343fc033f170395b470c0 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 14 Apr 2006 14:37:56 +0000 Subject: *** empty log message *** --- client/control.cc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'client/control.cc') diff --git a/client/control.cc b/client/control.cc index 143e11c..92bd74c 100644 --- a/client/control.cc +++ b/client/control.cc @@ -87,6 +87,13 @@ void Control::stop() mutex.unlock(); } +void Control::takeScreenshot() +{ + mutex.lock(); + screenshot = true; + mutex.unlock(); +} + bool Control::isFrozen() { bool isfrozen; @@ -105,8 +112,16 @@ bool Control::isRecording() return isrecording; } +bool Control::isScreenshot() +{ + bool isscreenshot; + mutex.lock(); + isscreenshot = screenshot; + screenshot = false; + mutex.unlock(); + return isscreenshot; +} + // Global control object Control MIaV::control; - - -- cgit v1.2.3