Skip to content

Commit

Permalink
Fix macOS image alignment (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev authored Jun 24, 2024
1 parent 60aee23 commit 12ed1c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/grabber/macOS/macOsGrabber.mm
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@
_actualWidth = CGImageGetWidth(display);
_actualHeight = CGImageGetHeight(display);

processSystemFrameBGRA(rawData);
size_t bytesPerRow = CGImageGetBytesPerRow(display);
processSystemFrameBGRA(rawData, static_cast<int>(bytesPerRow));

CFRelease(sysData);
}
Expand Down

0 comments on commit 12ed1c3

Please sign in to comment.