File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ namespace SL
6969 for (size_t i = 0 ; i < startmonitors.size (); i++) {
7070 if (startmonitors[i].Height != nowmonitors[i].Height ||
7171 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 ||
7473 startmonitors[i].OffsetX != nowmonitors[i].OffsetX ||
7574 startmonitors[i].OffsetY != nowmonitors[i].OffsetY ||
7675 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>&
2626 assert (isMonitorInsideBounds (mons, m));
2727 }
2828
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
3130
3231 for (size_t i = 0 ; i < monitors.size (); ++i) {
3332 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
7777 if (Thread_Data_->ExpectedErrorEvent ) {
7878 Thread_Data_->TerminateThreadsEvent = true ;
7979 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 ;
8281 // 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
8583
8684 ThreadMgr.Init (Thread_Data_);
8785 }
You can’t perform that action at this time.
0 commit comments