[PR #10770] [MERGED] Fix conhost UseDx mode #28215

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10770
Author: @lhecker
Created: 7/23/2021
Status: Merged
Merged: 7/23/2021
Merged by: @lhecker

Base: mainHead: dev/lhecker/fix-conhost-dx


📝 Commits (1)

📊 Changes

3 files changed (+12 additions, -18 deletions)

View changed files

📝 src/interactivity/win32/window.cpp (+2 -3)
📝 src/renderer/dx/DxRenderer.cpp (+10 -14)
📝 src/renderer/dx/DxRenderer.hpp (+0 -1)

📄 Description

This commit fixes the UseDx mode for conhost.
In order to add support for UseDx without calling SetWindowSize,
responsibility for resizing _invalidMap has been moved to occur
only when the renderer itself recognizes a new size. Furthermore
InvalidateAll is now the central point to invalidate _invalidMap.

Validation Steps Performed

  • Enabling UseDx enables the DxEngine for conhost ✔️
  • Resizing windows in conhost works ✔️
  • Resizing windows in WT works ✔️

Closes #5455


🔄 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/10770 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 7/23/2021 **Status:** ✅ Merged **Merged:** 7/23/2021 **Merged by:** [@lhecker](https://github.com/lhecker) **Base:** `main` ← **Head:** `dev/lhecker/fix-conhost-dx` --- ### 📝 Commits (1) - [`5dd42eb`](https://github.com/microsoft/terminal/commit/5dd42eb6519d7ec8782fb9f11a60d6383db2e926) Fix conhost UseDx mode ### 📊 Changes **3 files changed** (+12 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `src/interactivity/win32/window.cpp` (+2 -3) 📝 `src/renderer/dx/DxRenderer.cpp` (+10 -14) 📝 `src/renderer/dx/DxRenderer.hpp` (+0 -1) </details> ### 📄 Description This commit fixes the UseDx mode for conhost. In order to add support for UseDx without calling `SetWindowSize`, responsibility for resizing `_invalidMap` has been moved to occur only when the renderer itself recognizes a new size. Furthermore `InvalidateAll` is now the central point to invalidate `_invalidMap`. ## Validation Steps Performed * Enabling `UseDx` enables the DxEngine for conhost ✔️ * Resizing windows in conhost works ✔️ * Resizing windows in WT works ✔️ Closes #5455 --- <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:27:05 +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#28215