From 1a5771ec27a0c247c4681a4bc28fb6a63eaf30ee Mon Sep 17 00:00:00 2001 From: TZGyn Date: Wed, 12 Aug 2026 16:07:42 +0800 Subject: [PATCH] Render screenshot pixels crisply in the result window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The result image was upscaled with interpolated smoothing, making small captures look low-res. Disable interpolation so pixels stay 1:1 sharp. 💘 Generated with Crush Assisted-by: Crush:deepseek-v4-flash-0731 --- Sources/Kapture/ResultWindow.swift | 1 + build-app.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Kapture/ResultWindow.swift b/Sources/Kapture/ResultWindow.swift index 9ac39dc..70f3998 100644 --- a/Sources/Kapture/ResultWindow.swift +++ b/Sources/Kapture/ResultWindow.swift @@ -195,6 +195,7 @@ struct ResultView: View { if model.mode == .screenshot { Image(nsImage: NSImage(cgImage: model.image, size: .zero)) .resizable() + .interpolation(.none) .aspectRatio(contentMode: .fit) .border(Color.secondary.opacity(0.4)) .padding(.horizontal, 12) diff --git a/build-app.sh b/build-app.sh index 60bb35f..eb09d74 100755 --- a/build-app.sh +++ b/build-app.sh @@ -108,9 +108,9 @@ cat > "$APP/Contents/Info.plist" <<'PLIST' CFBundleIconFile Icon CFBundleShortVersionString - 1.1.0 + 1.1.1 CFBundleVersion - 10 + 11 LSUIElement NSHighResolutionCapable