Repository navigation
ui: render the Show All Masks overlay in zoom windows - #1808
Merged
echelon merged 1 commit intoOct 15, 2026
Merged
Conversation
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)
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. |
Contributor
Author
|
Thank you — glad it's in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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::AllMasksto the window path. Two tests pin it: the zoomed loupe stays a canvas-sized frame plus a window (fails before withnative 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