Skip to content

fix: overlay aspect ratio, app icon, and CI dedup#10

Merged
opariffazman merged 3 commits into
mainfrom
fix/overlay-aspect-icon
Jun 23, 2026
Merged

fix: overlay aspect ratio, app icon, and CI dedup#10
opariffazman merged 3 commits into
mainfrom
fix/overlay-aspect-icon

Conversation

@opariffazman

Copy link
Copy Markdown
Contributor

Summary

  • Aspect ratio fix: overlay now snaps its width to the camera's native aspect ratio on first frame — prevents squished video when saved window dimensions don't match the camera (e.g. stored 4:3 vs a 16:9 webcam)
  • App icon + metadata: converts cos.png to a multi-resolution cos.ico (16/32/48/256 px); wires it as ApplicationIcon in the csproj so the exe, taskbar, and Explorer all show the camera icon; sets Company, Product, AssemblyTitle, Description in the csproj; adds SetupIconFile to the Inno Setup script
  • CI dedup: drops the redundant push: branches: [main] trigger — CI already ran on the PR head, re-running on merge adds no coverage

Test plan

  • Launch app, start camera — overlay snaps to camera aspect ratio (no squish)
  • Wheel-resize overlay — aspect preserved across resizes
  • Check exe in Explorer — shows camera icon, not Windows default
  • File Properties > Details — Company: officialdad, Product: Camera on Screen
  • Verify CI runs on this PR and does NOT run again after merge

🤖 Generated with Claude Code

opariffazman and others added 3 commits June 23, 2026 17:16
UpdateScale applied independent X/Y scale factors, so a saved 4:3 window
config against a 16:9 camera produced a squished image. PresentFrame now
snaps the window width to preserve the camera's native aspect ratio at the
current height whenever the frame dimensions change (typically once at start).
OverlaySizer.Resize then captures the corrected ratio, keeping subsequent
wheel resizes undistorted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Convert cos.png to multi-resolution cos.ico (16/32/48/256 px) and wire it
as ApplicationIcon so the exe and taskbar show the camera icon instead of
the Windows default. Set Company/Product/AssemblyTitle/Description in the
csproj so file Properties > Details shows correct metadata. Add SetupIconFile
to the Inno Setup script so the installer wizard also uses the icon.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
CI already ran on the PR head; re-running on merge adds no coverage.
Direct pushes to main are expected to go through PRs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@opariffazman
opariffazman merged commit 217b134 into main Jun 23, 2026
1 check passed
@opariffazman
opariffazman deleted the fix/overlay-aspect-icon branch June 23, 2026 09:35
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

Successfully merging this pull request may close these issues.

1 participant