From 42ab122912ce2a04c754f97367e706b28898a01e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 9 Jul 2018 20:50:48 +0200 Subject: [PATCH] Shift the text control another pixel down in MSW wxSearchCtrl It was too high otherwise, which was especially noticeable in high DPI. This is still not perfect, as the default search bitmap is not centered neither and is a couple of pixels too high, but better than before. --- src/generic/srchctlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/srchctlg.cpp b/src/generic/srchctlg.cpp index 15a99c0927..e6cc4b1977 100644 --- a/src/generic/srchctlg.cpp +++ b/src/generic/srchctlg.cpp @@ -521,7 +521,7 @@ void wxSearchCtrl::LayoutControls() // of the white border that's part of the theme border. We can also remove a pixel from // the height to fit the text control in, because the padding in EDIT_HEIGHT_FROM_CHAR_HEIGHT // is already generous. - int textY = FromDIP(1); + int textY = FromDIP(2); #else int textY = 0; #endif