Skip to content

Commit 4bf2b08

Browse files
committed
I dont care about the screen name
1 parent f715c6c commit 4bf2b08

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

include/Internal/ThreadManager.h

+1-2
Original file line numberDiff line numberDiff 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;

src/Internal/ThreadManager.cpp

+1-2
Original file line numberDiff line numberDiff 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]);

src/ScreenCapture.cpp

+2-4
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)