From 20a8b0465562e22a8a88612e6047be55636c3aa1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Oct 2019 21:30:16 +0200 Subject: [PATCH] Don't increase the button height in wxMSWButton::GetFittingSize() This results in buttons being forced to be too tall when using high DPI and is useless anyhow, as all callers of this function deal with the height by increasing it to the minimum acceptable value already (or discard it entirely in wxMessageDialog::AdjustButtonLabels()). See #18528. --- src/msw/anybutton.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/msw/anybutton.cpp b/src/msw/anybutton.cpp index df5e2eee1a..b5b19f2d49 100644 --- a/src/msw/anybutton.cpp +++ b/src/msw/anybutton.cpp @@ -399,7 +399,6 @@ wxSize wxMSWButton::GetFittingSize(wxWindow *win, else { sizeBtn.x += 3*win->GetCharWidth(); - sizeBtn.y += win->GetCharHeight()/2; } // account for the shield UAC icon if we have it