Skip to content

Fix triangle scaling - #268

Open
carmiac wants to merge 4 commits into
VitruvianOS:masterfrom
carmiac:column-arrows
Open

carmiac wants to merge 4 commits into
VitruvianOS:masterfrom
carmiac:column-arrows

Conversation

@carmiac

@carmiac carmiac commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

There are a bunch of UI elements that are basically "directional triangle in a BRect or centered on a BPoint with BSize" and every single one of them doesn't scale and uses its own math.

This unifies them so that they all use the same triangle math and the ones that are part of an element that scales now scale with it.

The test shows the original vs the unified version, so it can be tested at any scale. It's almost always < 1 pixel of difference, and even at larger scales it's only 1 or 2 and I can't see the difference in the actual UI, even when looking for it.

- Add a centered overlaod for GetArrowShape
- Add a before/after test for UI triangles
- Move all drawn UI arrows/triangles to use GetArrowShape
- Move bitmapped triangles to drawn scaled triangles
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