Add optional wxWindow parameter to wxButtonBase::GetDefaultSize()

When per-monitor DPI is used, the default button size depends on the DPI of the
display. Use the window to determine this DPI.
This commit is contained in:
Maarten Bent
2019-09-04 20:53:07 +02:00
parent fa2242a0a6
commit 462f2a4686
8 changed files with 16 additions and 14 deletions

View File

@@ -165,7 +165,7 @@ wxWindow *wxButton::SetDefault()
}
/* static */
wxSize wxButtonBase::GetDefaultSize()
wxSize wxButtonBase::GetDefaultSize(wxWindow* WXUNUSED(win))
{
static wxSize size = wxDefaultSize;
if (size == wxDefaultSize)