Skip to content

Commit f513d76

Browse files
committed
Update index.md
1 parent 028af2e commit f513d76

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • Website/blog/2026-03-04-deep-dive-fixing-dpi-scaling-issues-for-embedded-processes

Website/blog/2026-03-04-deep-dive-fixing-dpi-scaling-issues-for-embedded-processes/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static extern bool SetCurrentConsoleFontEx(IntPtr hConsoleOutput,
7070
bool bMaximumWindow, ref CONSOLE_FONT_INFOEX lpConsoleCurrentFontEx);
7171
```
7272

73-
### Rescale helper
73+
### Font rescale helper
7474

7575
```csharp
7676
/// <summary>
@@ -174,6 +174,8 @@ PuTTY is a standard Win32 GUI application, not a console. The Console API does n
174174

175175
`WM_DPICHANGED` carries the new DPI packed into `wParam` (LOWORD = DPI X, HIWORD = DPI Y) and a `RECT*` in `lParam` with the suggested new window rect:
176176

177+
### DPI message helper
178+
177179
```csharp
178180
/// <summary>
179181
/// Sends WM_DPICHANGED to a GUI window so it can rescale its fonts and layout.
@@ -231,7 +233,7 @@ private void WindowsFormsHost_DpiChanged(object sender, DpiChangedEventArgs e)
231233
}
232234
```
233235

234-
### Fixing the initial DPI baseline for PuTTY
236+
### Fixing the initial DPI baseline
235237

236238
Same issue as PowerShell: PuTTY may start on a different monitor. Because PuTTY is a GUI process, the console API does not apply — but the explicit `WM_DPICHANGED` message works for the initial correction too:
237239

0 commit comments

Comments
 (0)