From 70151282dd6415b71cf9c0934a24c8dcc80dbd34 Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Fri, 26 Jul 2019 11:39:34 -0500 Subject: [PATCH] This seems to work, but is it as right as it could be? Does it work for the normal (non-tabs in titlebar) window? --- src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp b/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp index ec1f45a6e99..9d1cfa7d2d8 100644 --- a/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp +++ b/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp @@ -623,6 +623,12 @@ RECT NonClientIslandWindow::GetMaxWindowRectInPixels(const RECT* const prcSugges break; } } + case WM_DPICHANGED: + { + auto lprcNewScale = reinterpret_cast(lParam); + OnSize(RECT_WIDTH(lprcNewScale), RECT_HEIGHT(lprcNewScale)); + break; + } } return IslandWindow::MessageHandler(message, wParam, lParam);