Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3fdc2fca95 |
@@ -180,12 +180,12 @@ final class ScreenCapture {
|
|||||||
config.height = Int(CGFloat(display.height) * backingScale)
|
config.height = Int(CGFloat(display.height) * backingScale)
|
||||||
config.showsCursor = true
|
config.showsCursor = true
|
||||||
|
|
||||||
// ScreenCaptureKit's Y axis is flipped relative to AppKit
|
// ScreenCaptureKit uses a different origin than AppKit for
|
||||||
// NSScreen frames. Convert the selection into SCDisplay space
|
// screens stacked around the main display: per-display,
|
||||||
// using the matching NSScreen's top edge, then crop there.
|
// SCDisplay y = appKitY - NSScreen.maxY + SCDisplay.maxY.
|
||||||
let scRect = CGRect(
|
let scRect = CGRect(
|
||||||
x: rect.minX,
|
x: rect.minX,
|
||||||
y: screen.frame.maxY - rect.maxY + display.frame.minY,
|
y: rect.minY - screen.frame.maxY + display.frame.maxY,
|
||||||
width: rect.width,
|
width: rect.width,
|
||||||
height: rect.height
|
height: rect.height
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -108,9 +108,9 @@ cat > "$APP/Contents/Info.plist" <<'PLIST'
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>Icon</string>
|
<string>Icon</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.1.7</string>
|
<string>1.1.8</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>17</string>
|
<string>18</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user