ALL: Don't use EventRecorder at all when not compiled in

This commit is contained in:
Matthew Hoops 2013-07-06 23:54:45 -04:00
parent bd82ca97c2
commit 4a7e4e5b22
9 changed files with 61 additions and 59 deletions

View file

@ -258,8 +258,10 @@ void GuiManager::runLoop() {
if (activeDialog == 0)
return;
#ifdef ENABLE_EVENTRECORDER
// Suspend recording while GUI is shown
g_eventRec.suspendRecording();
#endif
if (!_stateIsSaved) {
saveState();
@ -361,8 +363,10 @@ void GuiManager::runLoop() {
_useStdCursor = false;
}
#ifdef ENABLE_EVENTRECORDER
// Resume recording once GUI is shown
g_eventRec.resumeRecording();
#endif
}
#pragma mark -