[PR #3301] [MERGED] fix latent DPI issues with the WPF control #25308

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/3301
Author: @ghost
Created: 10/23/2019
Status: Merged
Merged: 10/24/2019
Merged by: @miniksa

Base: masterHead: dev/zorio/dpi-issues


📝 Commits (2)

  • 6907d9e fix latent DPI issues with the WPF control
  • e45c0aa reduce code duplication

📊 Changes

2 files changed (+14 additions, -24 deletions)

View changed files

📝 src/cascadia/WpfTerminalControl/TerminalContainer.cs (+13 -20)
📝 src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs (+1 -4)

📄 Description

Summary of the Pull Request

The WPF control incorrectly assumed that it would receive DPI changed events when launched on a screen with a non-default DPI. This turned out not to be the case so instead we manually get the current DPI when sending size information to the native control.

Validation Steps Performed

Patched the VS terminal and verified that on 125% DPI the control was sized correctly.


🔄 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/3301 **Author:** [@ghost](https://github.com/ghost) **Created:** 10/23/2019 **Status:** ✅ Merged **Merged:** 10/24/2019 **Merged by:** [@miniksa](https://github.com/miniksa) **Base:** `master` ← **Head:** `dev/zorio/dpi-issues` --- ### 📝 Commits (2) - [`6907d9e`](https://github.com/microsoft/terminal/commit/6907d9ef8d7d39e1549c6201ab846a522efb35b1) fix latent DPI issues with the WPF control - [`e45c0aa`](https://github.com/microsoft/terminal/commit/e45c0aada1b4ce00952144ac5d6b25fadb5c66c2) reduce code duplication ### 📊 Changes **2 files changed** (+14 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/WpfTerminalControl/TerminalContainer.cs` (+13 -20) 📝 `src/cascadia/WpfTerminalControl/TerminalControl.xaml.cs` (+1 -4) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request The WPF control incorrectly assumed that it would receive DPI changed events when launched on a screen with a non-default DPI. This turned out not to be the case so instead we manually get the current DPI when sending size information to the native control. ## Validation Steps Performed Patched the VS terminal and verified that on 125% DPI the control was sized correctly. --- <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:08:40 +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#25308