Skip to content

Fix pad border highlight in GL mode#21911

Open
linev wants to merge 1 commit intoroot-project:masterfrom
linev:fix_canvas_flush
Open

Fix pad border highlight in GL mode#21911
linev wants to merge 1 commit intoroot-project:masterfrom
linev:fix_canvas_flush

Conversation

@linev
Copy link
Copy Markdown
Member

@linev linev commented Apr 14, 2026

Was drawn before at the very end and therefore render order was not correct. If active pad was hidden by other pad border was drawn on the top anyway.

Can be generalized also for normal painting later

Was drawn before at the very end and therefore render order was not correct. If active pad was hidden by other pad border was drawn on the top anyway.
@linev linev requested a review from bellenot April 14, 2026 14:30
@linev linev self-assigned this Apr 14, 2026
@linev linev requested a review from couet as a code owner April 14, 2026 14:30
Copy link
Copy Markdown
Member

@bellenot bellenot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (at least it works with your example on Windows)

//
TVirtualPadPainter *fPainter; ///<! Canvas (pad) painter.

TVirtualPad *fHilightPadBorder = nullptr; ///<! pad which border will be hilghlighrt when paint canvas
Copy link
Copy Markdown
Collaborator

@ferdymercury ferdymercury Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TVirtualPad *fHilightPadBorder = nullptr; ///<! pad which border will be hilghlighrt when paint canvas
TVirtualPad *fHilightPadBorder = nullptr; ///<! pad whose border will be highlighted when paint canvas

@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 2h 16m 30s ⏱️
 3 830 tests  3 829 ✅  1 💤 0 ❌
75 611 runs  75 593 ✅ 18 💤 0 ❌

Results for commit 80a893b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants