diff --git a/src/renderer/win32/candidate_window.cc b/src/renderer/win32/candidate_window.cc index 2f0f284ce8..7377a332cf 100644 --- a/src/renderer/win32/candidate_window.cc +++ b/src/renderer/win32/candidate_window.cc @@ -291,6 +291,10 @@ void CandidateWindow::OnDestroy() { ::PostQuitMessage(0); } +void CandidateWindow::OnDpiChanged(UINT dpiX, UINT dpiY, RECT *rect) { + metrics_changed_ = true; +} + BOOL CandidateWindow::OnEraseBkgnd(CDCHandle dc) { // We do not have to erase background // because all pixels in client area will be drawn in the DoPaint method. diff --git a/src/renderer/win32/candidate_window.h b/src/renderer/win32/candidate_window.h index 03696e4a93..2e4d58d4a6 100644 --- a/src/renderer/win32/candidate_window.h +++ b/src/renderer/win32/candidate_window.h @@ -77,6 +77,7 @@ class CandidateWindow : public ATL::CWindowImpl true + + PerMonitorV2 +