mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
TakeSourceScreenshot: fix tearing issue when scaling
This commit is contained in:
parent
059244bb32
commit
c92477b457
@ -1430,7 +1430,7 @@ HandlerResponse WSRequestHandler::HandleTakeSourceScreenshot(WSRequestHandler* r
|
||||
if (gs_stagesurface_map(stagesurface, &videoData, &videoLinesize)) {
|
||||
int linesize = sourceImage.bytesPerLine();
|
||||
for (int y = 0; y < imgHeight; y++) {
|
||||
memcpy(sourceImage.scanLine(y), videoData + (y * linesize), linesize);
|
||||
memcpy(sourceImage.scanLine(y), videoData + (y * videoLinesize), linesize);
|
||||
}
|
||||
gs_stagesurface_unmap(stagesurface);
|
||||
renderSuccess = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user