Repository navigation
Capture the DPI once per pie build - #79
Merged
Merged
Conversation
danielchalmers
added this pull request to stack #81
September 21, 2026 02:19
danielchalmers
force-pushed
the
claude/pie-dpi-once-per-build
branch
from
September 21, 2026 02:49
690559d to
1e76aa3
Compare
danielchalmers
removed this pull request from stack #81
September 21, 2026 02:50
danielchalmers
added this pull request to stack #82
September 21, 2026 02:51
danielchalmers
force-pushed
the
claude/pie-dpi-once-per-build
branch
from
September 21, 2026 02:53
1e76aa3 to
8207895
Compare
Every snapped coordinate walked up to the presentation source through VisualTreeHelper.GetDpi, and a pie build snaps well over a hundred points across slices, hints, and labels. The DPI cannot change mid-build, so it is now read once at the start of CreatePieMenu. A DPI change still rebuilds the pie through OnDpiChanged, which refreshes the capture. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AQy32pEEDt7qxvE76cJk6G
danielchalmers
force-pushed
the
claude/pie-dpi-once-per-build
branch
from
September 21, 2026 02:54
8207895 to
fd7596f
Compare
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.
Every snapped coordinate walked up to the presentation source through
VisualTreeHelper.GetDpi, and a pie build snaps well over a hundred points across slices, hints, and labels. The DPI cannot change mid-build, so it is now read once at the start ofCreatePieMenu.Risk
OnDpiChanged, which refreshes the capture, so the cached value can never go stale across a monitor move.