[PR #2491] dx: Render all gridlines (and, bonus: the box cursor) properly #24948

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

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

State: closed
Merged: Yes


Since we're rendering with antialiasing enabled, we need to make sure
we're stroking actual pixels; to do that, we need to adjust all of our
coordinates by the StrokeWidth / 2. We're always using a stroke width of
1, so that means 0.5.

While I was here, I took the opportunity to fix the color of the grid
lines. Fixes #543.

PR Checklist

Validation Steps Performed

I wrote a quick tool that uses all the gridlines.

image

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2491 **State:** closed **Merged:** Yes --- Since we're rendering with antialiasing enabled, we need to make sure we're stroking actual pixels; to do that, we need to adjust all of our coordinates by the StrokeWidth / 2. We're always using a stroke width of 1, so that means 0.5. While I was here, I took the opportunity to fix the color of the grid lines. Fixes #543. ## PR Checklist * [x] Closes #543 ## Validation Steps Performed I wrote a quick tool that uses all the gridlines. ![image](https://user-images.githubusercontent.com/14316954/63384803-7c349200-c354-11e9-9fc8-9cc54bd57ff5.png)
claunia added the pull-request label 2026-01-31 09:06:19 +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#24948