File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ namespace SL
69
69
for (size_t i = 0 ; i < startmonitors.size (); i++) {
70
70
if (startmonitors[i].Height != nowmonitors[i].Height ||
71
71
startmonitors[i].Id != nowmonitors[i].Id ||
72
- startmonitors[i].Index != nowmonitors[i].Index ||
73
- startmonitors[i].Name != nowmonitors[i].Name ||
72
+ startmonitors[i].Index != nowmonitors[i].Index ||
74
73
startmonitors[i].OffsetX != nowmonitors[i].OffsetX ||
75
74
startmonitors[i].OffsetY != nowmonitors[i].OffsetY ||
76
75
startmonitors[i].Width != nowmonitors[i].Width ) return true ;
Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ void SL::Screen_Capture::ThreadManager::Init(const std::shared_ptr<Thread_Data>&
26
26
assert (isMonitorInsideBounds (mons, m));
27
27
}
28
28
29
- m_ThreadHandles.resize (monitors.size () +
30
- (data->CaptureMouse ? 1 : 0 )); // add another thread for mouse capturing if needed
29
+ m_ThreadHandles.resize (monitors.size () + (data->CaptureMouse ? 1 : 0 )); // add another thread for mouse capturing if needed
31
30
32
31
for (size_t i = 0 ; i < monitors.size (); ++i) {
33
32
m_ThreadHandles[i] = std::thread (&SL::Screen_Capture::RunCaptureMonitor, data, monitors[i]);
Original file line number Diff line number Diff line change @@ -77,11 +77,9 @@ namespace Screen_Capture
77
77
if (Thread_Data_->ExpectedErrorEvent ) {
78
78
Thread_Data_->TerminateThreadsEvent = true ;
79
79
ThreadMgr.Join ();
80
- Thread_Data_->ExpectedErrorEvent = Thread_Data_->UnexpectedErrorEvent =
81
- Thread_Data_->TerminateThreadsEvent = false ;
80
+ Thread_Data_->ExpectedErrorEvent = Thread_Data_->UnexpectedErrorEvent = Thread_Data_->TerminateThreadsEvent = false ;
82
81
// Clean up
83
- std::this_thread::sleep_for (
84
- std::chrono::milliseconds (1000 )); // sleep for 1 second since an error occcured
82
+ std::this_thread::sleep_for ( std::chrono::milliseconds (1000 )); // sleep for 1 second since an error occcured
85
83
86
84
ThreadMgr.Init (Thread_Data_);
87
85
}
You can’t perform that action at this time.
0 commit comments