Skip to content

Commit bc9039b

Browse files
committed
2 parents 4e2b0e8 + 62d0dc6 commit bc9039b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# screen capture lite
2-
<h3>I will not debug normal programming issues and will close any that are not bugs.</h3>
2+
<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>
33
<p>Linux/Mac <img src="https://travis-ci.org/smasherprog/screen_capture_lite.svg?branch=master" /></p>
44
<p>Windows <img src="https://ci.appveyor.com/api/projects/status/6nlqo1csbkgdxorx"/><p>
55
<p>Cross-platform screen and window capturing library . . . this is made to be lightweight and fast.

src/ios/GetMonitors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace SL{
2727
auto r = CGDisplayBounds(displays[i]);
2828
auto scale = static_cast<float>(width)/static_cast<float>(r.size.width);
2929
auto name = std::string("Monitor ") + std::to_string(displays[i]);
30-
ret.push_back(CreateMonitor(i, displays[i],height,width, int(r.origin.x), int(r.origin.y), name, scale));
30+
ret.push_back(CreateMonitor(static_cast<int>(ret.size()), displays[i],height,width, int(r.origin.x), int(r.origin.y), name, scale));
3131
}
3232
}
3333
return ret;

src/windows/GetMonitors.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace Screen_Capture {
4444
break;
4545
}
4646
ret.push_back(
47-
CreateMonitor(i, i, devMode.dmPelsHeight, devMode.dmPelsWidth, devMode.dmPosition.x, devMode.dmPosition.y, name, scale));
47+
CreateMonitor(static_cast<int>(ret.size()), i, devMode.dmPelsHeight, devMode.dmPelsWidth, devMode.dmPosition.x, devMode.dmPosition.y, name, scale));
4848
}
4949
}
5050
return ret;

0 commit comments

Comments
 (0)