[PR #14971] [MERGED] Fix offset calculation in the outlines shader #30322

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14971
Author: @lhecker
Created: 3/8/2023
Status: ✅ Merged
Merged: 3/16/2023
Merged by: @DHowett

Base: main ← Head: dev/lhecker/outlines-shader


📝 Commits (1)

  • 1e12eec Fix offset calculation in the outlines shader

📊 Changes

1 file changed (+16 additions, -35 deletions)

View changed files

📝 samples/PixelShaders/Outlines.hlsl (+16 -35)

📄 Description

The Sample method has an offset parameter which we can use here.
The result is not identical to the old shader, as the older shader
used the height of the terminal for drawing horizontal edges and so
the result looked way fatter than it was seemingly originally intended.
On my 150% scale display I found an offset of +/- 2px to produce an
acceptable result, although in the future it might be worthwhile to
make the offset dependent on the UI scale.

Closes #14953


🔄 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/14971 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 3/8/2023 **Status:** ✅ Merged **Merged:** 3/16/2023 **Merged by:** [@DHowett](https://github.com/DHowett) **Base:** `main` ← **Head:** `dev/lhecker/outlines-shader` --- ### 📝 Commits (1) - [`1e12eec`](https://github.com/microsoft/terminal/commit/1e12eecc20ee3c9b110c808b8e18e19e9c833a3e) Fix offset calculation in the outlines shader ### 📊 Changes **1 file changed** (+16 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `samples/PixelShaders/Outlines.hlsl` (+16 -35) </details> ### 📄 Description The `Sample` method has an offset parameter which we can use here. The result is not identical to the old shader, as the older shader used the height of the terminal for drawing horizontal edges and so the result looked way fatter than it was seemingly originally intended. On my 150% scale display I found an offset of +/- 2px to produce an acceptable result, although in the future it might be worthwhile to make the offset dependent on the UI scale. Closes #14953 --- <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:40:06 +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#30322