Skip to content

Commit ed93ca0

Browse files
committed
Apple implementation working for whole screen
1 parent 7959f72 commit ed93ca0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Example/Screen_Capture_Example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ int main()
4444
auto r = realcounter.fetch_add(1);
4545
auto s = std::to_string(r) + std::string(" E") + std::string(".jpg");
4646

47-
/* if (!tje_encode_to_file(s.c_str(), monitor.Width, monitor.Height, 4, (const unsigned char*)src)) {
47+
/*if (!tje_encode_to_file(s.c_str(), monitor.Width, monitor.Height, 4, (const unsigned char*)src)) {
4848
std::cout << "Could not write JPEG\n";
4949
}*/
5050

src/ios/CGFrameProcessor.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace SL {
2424
}
2525
DUPL_RETURN CGFrameProcessor::Init(std::shared_ptr<THREAD_DATA> data) {
2626
auto ret = DUPL_RETURN::DUPL_RETURN_SUCCESS;
27+
_CGFrameProcessorImpl->Data = data;
2728
_CGFrameProcessorImpl->ImageBufferSize = data->SelectedMonitor.Height*data->SelectedMonitor.Width*PixelStride;
2829
_CGFrameProcessorImpl->ImageBuffer = std::make_unique<char[]>(_CGFrameProcessorImpl->ImageBufferSize);
2930

0 commit comments

Comments
 (0)