diff --git a/Sources/Kapture/CaptureController.swift b/Sources/Kapture/CaptureController.swift index 7b15ce1..9df7235 100644 --- a/Sources/Kapture/CaptureController.swift +++ b/Sources/Kapture/CaptureController.swift @@ -124,6 +124,9 @@ final class ScreenCapture { let scaleX = CGFloat(image.width) / display.frame.width let scaleY = CGFloat(image.height) / display.frame.height guard scaleX > 0, scaleY > 0 else { return nil } + // pxRect is in image pixel space with a TOP-LEFT origin (SCDisplay space). + // CGImage.cropping(to:) expects the same top-left rect, so no Y flip + // is needed here — this preserves the previous CGContext behavior. let pxRect = CGRect( x: (cgRect.minX - display.frame.minX) * scaleX, y: (cgRect.minY - display.frame.minY) * scaleY, diff --git a/build-app.sh b/build-app.sh index 531be5d..df558df 100755 --- a/build-app.sh +++ b/build-app.sh @@ -108,9 +108,9 @@ cat > "$APP/Contents/Info.plist" <<'PLIST' CFBundleIconFile Icon CFBundleShortVersionString - 1.3.0 + 1.3.1 CFBundleVersion - 30 + 31 LSUIElement NSHighResolutionCapable