Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
smasherprog committed Feb 26, 2018
2 parents 4e2b0e8 + 62d0dc6 commit bc9039b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# screen capture lite
<h3>I will not debug normal programming issues and will close any that are not bugs.</h3>
<p><b>Note:</b> This library is is stable and contains no known bugs. I will continue to fix any bugs and test against the platforms as they are updated. </p>
<p>Linux/Mac <img src="https://travis-ci.org/smasherprog/screen_capture_lite.svg?branch=master" /></p>
<p>Windows <img src="https://ci.appveyor.com/api/projects/status/6nlqo1csbkgdxorx"/><p>
<p>Cross-platform screen and window capturing library . . . this is made to be lightweight and fast.
Expand Down
2 changes: 1 addition & 1 deletion src/ios/GetMonitors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace SL{
auto r = CGDisplayBounds(displays[i]);
auto scale = static_cast<float>(width)/static_cast<float>(r.size.width);
auto name = std::string("Monitor ") + std::to_string(displays[i]);
ret.push_back(CreateMonitor(i, displays[i],height,width, int(r.origin.x), int(r.origin.y), name, scale));
ret.push_back(CreateMonitor(static_cast<int>(ret.size()), displays[i],height,width, int(r.origin.x), int(r.origin.y), name, scale));
}
}
return ret;
Expand Down
2 changes: 1 addition & 1 deletion src/windows/GetMonitors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace Screen_Capture {
break;
}
ret.push_back(
CreateMonitor(i, i, devMode.dmPelsHeight, devMode.dmPelsWidth, devMode.dmPosition.x, devMode.dmPosition.y, name, scale));
CreateMonitor(static_cast<int>(ret.size()), i, devMode.dmPelsHeight, devMode.dmPelsWidth, devMode.dmPosition.x, devMode.dmPosition.y, name, scale));
}
}
return ret;
Expand Down

0 comments on commit bc9039b

Please sign in to comment.