[PR #5149] [MERGED] Set DxRenderer non-text alias mode #26135

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5149
Author: @carlos-zamora
Created: 3/27/2020
Status: Merged
Merged: 3/28/2020
Merged by: @undefined

Base: masterHead: dev/cazamor/bugfix-mc-lines


📝 Commits (2)

📊 Changes

2 files changed (+11 additions, -1 deletions)

View changed files

📝 src/renderer/dx/CustomTextRenderer.cpp (+6 -1)
📝 src/renderer/dx/DxRenderer.cpp (+5 -0)

📄 Description

There are two antialias modes that can be set on the ID2D1RenderTarget:

  • one for text/glyph drawing [1]
  • one for everything else [2]
    We had to configure that in the RenderTarget.

Additionally, when clipping the background color rect, we need to make
sure that's aliased too. [3]

References

[1] ID2D1RenderTarget::SetTextAntialiasMode
https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-settextantialiasmode
[2] ID2D1RenderTarget::SetAntialiasMode
https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-setantialiasmode)
[3] ID2D1CommandSink::PushAxisAlignedClip
https://docs.microsoft.com/en-us/windows/win32/api/d2d1_1/nf-d2d1_1-id2d1commandsink-pushaxisalignedclip)

Validation

Open and interact with midnight commander with the display scaling set
to...

  • 100%
  • 125%
  • 150%
  • 175%
  • 200%

Closes #3626


🔄 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/5149 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 3/27/2020 **Status:** ✅ Merged **Merged:** 3/28/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/cazamor/bugfix-mc-lines` --- ### 📝 Commits (2) - [`8a0bb71`](https://github.com/microsoft/terminal/commit/8a0bb718560aca489a46249f89164f8a5ed75711) Set DxRenderer non-text alias mode - [`8c4228c`](https://github.com/microsoft/terminal/commit/8c4228c834333506581d01aac75edb776758f76b) add comment ### 📊 Changes **2 files changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/dx/CustomTextRenderer.cpp` (+6 -1) 📝 `src/renderer/dx/DxRenderer.cpp` (+5 -0) </details> ### 📄 Description There are two antialias modes that can be set on the ID2D1RenderTarget: - one for text/glyph drawing [1] - one for everything else [2] We had to configure that in the RenderTarget. Additionally, when clipping the background color rect, we need to make sure that's aliased too. [3] ## References [1] ID2D1RenderTarget::SetTextAntialiasMode https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-settextantialiasmode [2] ID2D1RenderTarget::SetAntialiasMode https://docs.microsoft.com/en-us/windows/win32/api/d2d1/nf-d2d1-id2d1rendertarget-setantialiasmode) [3] ID2D1CommandSink::PushAxisAlignedClip https://docs.microsoft.com/en-us/windows/win32/api/d2d1_1/nf-d2d1_1-id2d1commandsink-pushaxisalignedclip) ## Validation Open and interact with midnight commander with the display scaling set to... - 100% - 125% - 150% - 175% - 200% Closes #3626 --- <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:14:12 +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#26135