[PR #18027] Use floating DIPs throughout the stack #31430

Open
opened 2026-01-31 09:47:14 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18027

State: closed
Merged: Yes


I sure hope I didn't break anything!
While til::math was a good idea its convenience led us to use it
in the only place where it absolutely must not be used: The UI code.
So, this PR replaces all those til::points, etc., with floats.
Now we use DIPs consistently throughout all layers of the UI code,
except for the UIA area (that would've required too many changes).

Validation Steps Performed

Launch, looks good, no obvious defects, UIA positioning seems ok.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18027 **State:** closed **Merged:** Yes --- I sure hope I didn't break anything! While `til::math` was a good idea its convenience led us to use it in the only place where it absolutely must not be used: The UI code. So, this PR replaces all those `til::point`s, etc., with floats. Now we use DIPs consistently throughout all layers of the UI code, except for the UIA area (that would've required too many changes). ## Validation Steps Performed Launch, looks good, no obvious defects, UIA positioning seems ok. ✅
claunia added the pull-request label 2026-01-31 09:47:14 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31430