[PR #11345] [MERGED] Use the til::enumset type for the GridLines enum in the renderers #28507

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11345
Author: @j4james
Created: 9/28/2021
Status: Merged
Merged: 9/29/2021
Merged by: @undefined

Base: mainHead: enumset-in-gridlines


📝 Commits (1)

  • 26af5be Use til::enumset for the renderer GridLines enum.

📊 Changes

15 files changed (+57 additions, -58 deletions)

View changed files

📝 src/interactivity/onecore/BgfxEngine.cpp (+1 -1)
📝 src/interactivity/onecore/BgfxEngine.hpp (+1 -1)
📝 src/renderer/base/renderer.cpp (+14 -14)
📝 src/renderer/base/renderer.hpp (+1 -1)
📝 src/renderer/dx/DxRenderer.cpp (+12 -12)
📝 src/renderer/dx/DxRenderer.hpp (+1 -1)
📝 src/renderer/gdi/gdirenderer.hpp (+1 -1)
📝 src/renderer/gdi/paint.cpp (+8 -8)
📝 src/renderer/inc/IRenderEngine.hpp (+12 -13)
📝 src/renderer/uia/UiaRenderer.cpp (+1 -1)
📝 src/renderer/uia/UiaRenderer.hpp (+1 -1)
📝 src/renderer/vt/paint.cpp (+1 -1)
📝 src/renderer/vt/vtrenderer.hpp (+1 -1)
📝 src/renderer/wddmcon/WddmConRenderer.cpp (+1 -1)
📝 src/renderer/wddmcon/WddmConRenderer.hpp (+1 -1)

📄 Description

Summary of the Pull Request

This replaces the GridLines enum in the renderers with a til::enumset type, avoiding the need for the various WI_IsFlagSet macros and flag operators.

References

This is followup to PR #10492 which introduced the enumset class.

PR Checklist

  • Closes #xxx
  • CLA signed.
  • Tests added/passed
  • Documentation updated.
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.

Validation Steps Performed

I've manually confirmed that all the different gridlines are still rendering correctly in both the GDI and DX renderers.


🔄 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/11345 **Author:** [@j4james](https://github.com/j4james) **Created:** 9/28/2021 **Status:** ✅ Merged **Merged:** 9/29/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `enumset-in-gridlines` --- ### 📝 Commits (1) - [`26af5be`](https://github.com/microsoft/terminal/commit/26af5be0071c80fa415205843fd519173add1636) Use til::enumset for the renderer GridLines enum. ### 📊 Changes **15 files changed** (+57 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `src/interactivity/onecore/BgfxEngine.cpp` (+1 -1) 📝 `src/interactivity/onecore/BgfxEngine.hpp` (+1 -1) 📝 `src/renderer/base/renderer.cpp` (+14 -14) 📝 `src/renderer/base/renderer.hpp` (+1 -1) 📝 `src/renderer/dx/DxRenderer.cpp` (+12 -12) 📝 `src/renderer/dx/DxRenderer.hpp` (+1 -1) 📝 `src/renderer/gdi/gdirenderer.hpp` (+1 -1) 📝 `src/renderer/gdi/paint.cpp` (+8 -8) 📝 `src/renderer/inc/IRenderEngine.hpp` (+12 -13) 📝 `src/renderer/uia/UiaRenderer.cpp` (+1 -1) 📝 `src/renderer/uia/UiaRenderer.hpp` (+1 -1) 📝 `src/renderer/vt/paint.cpp` (+1 -1) 📝 `src/renderer/vt/vtrenderer.hpp` (+1 -1) 📝 `src/renderer/wddmcon/WddmConRenderer.cpp` (+1 -1) 📝 `src/renderer/wddmcon/WddmConRenderer.hpp` (+1 -1) </details> ### 📄 Description ## Summary of the Pull Request This replaces the `GridLines` enum in the renderers with a `til::enumset` type, avoiding the need for the various `WI_IsFlagSet` macros and flag operators. ## References This is followup to PR #10492 which introduced the `enumset` class. ## PR Checklist * [ ] Closes #xxx * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. ## Validation Steps Performed I've manually confirmed that all the different gridlines are still rendering correctly in both the GDI and DX renderers. --- <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:28:59 +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#28507