Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: Use of deprecated API #164

Open
turbo opened this issue Feb 16, 2024 · 1 comment
Open

macOS: Use of deprecated API #164

turbo opened this issue Feb 16, 2024 · 1 comment

Comments

@turbo
Copy link

turbo commented Feb 16, 2024

macOS 14 deprecated CGWindowListCreateImage in favor of ScreenCaptureKit:

[ 27%] Building CXX object src_cpp/CMakeFiles/screen_capture_lite_shared.dir/ios/CGFrameProcessor.cpp.o
/Users/turbo/dev/screen_capture_lite/src_cpp/ios/CGFrameProcessor.cpp:21:25: warning: 'CGWindowListCreateImage' is deprecated: first deprecated in macOS 14.0 - This API is deprecated. Please use ScreenCaptureKit's captureScreenshot APIs instead. [-Wdeprecated-declarations]
        auto imageRef = CGWindowListCreateImage(CGRectNull, kCGWindowListOptionIncludingWindow, static_cast<uint32_t>(window.Handle),
                        ^
@smasherprog
Copy link
Owner

I dont have a mac any more. If you can submit a PR to fix ill gladly accept it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants