Skip to content

Commit 6071cd6

Browse files
committed
changed monitor
1 parent ba0ded5 commit 6071cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/CGFrameProcessor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace Screen_Capture {
5252
ret.right = Width(SelectedMonitor);
5353
auto rowstride = PixelStride * Width(SelectedMonitor);
5454
auto startbuf = buf + ((OffsetX(SelectedMonitor) - OffsetX(curentmonitorinfo) )*PixelStride);//advance to the start of this image
55-
startbuf += (OffsetY(curentmonitorinfo) * bytesperrow);
55+
startbuf += (OffsetY(SelectedMonitor) * bytesperrow);
5656

5757
if (Data->ScreenCaptureData.OnNewFrame && !Data->ScreenCaptureData.OnFrameChanged) {
5858
auto wholeimg = Create(ret, PixelStride, static_cast<int>(bytesperrow) - rowstride, startbuf);

0 commit comments

Comments
 (0)