Skip to content

Commit

Permalink
Updated CMAKE
Browse files Browse the repository at this point in the history
  • Loading branch information
smasherprog committed Jan 15, 2017
1 parent 0b25f5e commit 3f43d32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(Screen_Capture)

option(BUILD_EXAMPLE "Build example" On)

add_subdirectory(lib)
add_subdirectory(src)

if(BUILD_EXAMPLE)
add_subdirectory(Example)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Internal/ThreadManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void SL::Screen_Capture::ThreadManager::Init(const Base_Thread_Data& data, const
{
Reset();
auto monitorcapturing = settings.CaptureDifMonitor || settings.CaptureEntireMonitor;
auto numthreads = (settings.CaptureMouse ? 1 : 0);
size_t numthreads = (settings.CaptureMouse ? 1 : 0);
numthreads += monitorcapturing ? settings.Monitors.size() : 0;
m_ThreadHandles.resize(numthreads);// add another thread for mouse capturing

Expand Down

0 comments on commit 3f43d32

Please sign in to comment.