screen_capture_lite icon indicating copy to clipboard operation
screen_capture_lite copied to clipboard

macOS: Use of deprecated API

Open turbo opened this issue 1 year ago • 1 comments
trafficstars

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),
                        ^

turbo avatar Feb 16 '24 00:02 turbo

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

smasherprog avatar Feb 27 '24 15:02 smasherprog