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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2491
Author: @DHowett-MSFT
Created: 8/20/2019
Status: Merged
Merged: 8/21/2019
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/lineybois


📝 Commits (2)

  • 3d05dc8 dx: Render all gridlines (and, bonus: the box cursor) properly
  • 4f3437a -

📊 Changes

2 files changed (+31 additions, -12 deletions)

View changed files

📝 src/renderer/dx/DxRenderer.cpp (+30 -12)
📝 src/renderer/dx/DxRenderer.hpp (+1 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/2491 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 8/20/2019 **Status:** ✅ Merged **Merged:** 8/21/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/lineybois` --- ### 📝 Commits (2) - [`3d05dc8`](https://github.com/microsoft/terminal/commit/3d05dc88099fd40439dd3e70b27f09c68915d671) dx: Render all gridlines (and, bonus: the box cursor) properly - [`4f3437a`](https://github.com/microsoft/terminal/commit/4f3437a5ff544479e92477bd92e990dbdc943943) - ### 📊 Changes **2 files changed** (+31 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/dx/DxRenderer.cpp` (+30 -12) 📝 `src/renderer/dx/DxRenderer.hpp` (+1 -0) </details> ### 📄 Description 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:06:17 +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#24943