Skip to content

ui: render the Show All Masks overlay in zoom windows - #1808

Merged
echelon merged 1 commit into
storytold:mainfrom
midasmatterhorn:fix/issue-1712-all-masks-window
Oct 15, 2026
Merged

echelon merged 1 commit into
storytold:mainfrom
midasmatterhorn:fix/issue-1712-all-masks-window

Conversation

@midasmatterhorn

Copy link
Copy Markdown
Contributor

In a zoomed view, "Show All Masks" still rendered the whole frame at the zoom size, while a single mask's overlay was already shown through a native zoom window (#547): slower, and its detail stopped at the full-frame render's resolution. The window renderer already composes the union from the same mask alphas the selected-mask overlay uses, so only the loupe's gate kept it out; this admits Overlay::AllMasks to the window path. Two tests pin it: the zoomed loupe stays a canvas-sized frame plus a window (fails before with native 6000: the whole-frame render is 6000), and a window of the union matches the whole render's pixels for every mask view.

Fixes #1712

The loupe's window rendering already evaluates every visible mask's alpha
for an `Overlay::AllMasks` (its union is composed from the same alphas the
selected-mask overlay uses), but `overlay_supports_window` refused it, so
at 1:1 and closer "Show All Masks" fell back to a whole-frame render at
the zoomed size: slower, and its detail stopped at the frame render's
resolution. Allowing it makes the zoomed view a canvas-sized frame plus a
native window, as a single mask's overlay already is.

Tests:
- tests_preview_limit::an_all_masks_overlay_at_one_to_one_is_a_window
  (fails before: "native 6000: the whole-frame render is 6000")
- tests_window::an_all_masks_overlay_window_matches_the_whole_render
  (a window of the union matches the whole render's pixels, for every view)
@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @midasmatterhorn! This landed on main in integration batch 36 (#1843).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

@midasmatterhorn

Copy link
Copy Markdown
Contributor Author

Thank you — glad it's in.

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.

Show All Masks overlay renders full-frame when zoomed (no zoom window)

2 participants