From 7eee3607753440ef291dbeb0e9e7ce7066cdb27c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 25 Feb 2008 02:21:18 +0000 Subject: [PATCH] correct radio button best size calculation under CE (was too small by 1 pixel vertically) (modified patch 1891008) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/radiobut.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/msw/radiobut.cpp b/src/msw/radiobut.cpp index dddab3e26a..134a81dfe2 100644 --- a/src/msw/radiobut.cpp +++ b/src/msw/radiobut.cpp @@ -290,6 +290,13 @@ wxSize wxRadioButton::DoGetBestSize() const dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); s_radioSize = dc.GetCharHeight(); + + // radio button bitmap size under CE is bigger than the font height, + // adding just one pixel seems to work fine for the default font but it + // would be nice to find some better way to find the correct height +#ifdef __WXWINCE__ + s_radioSize++; +#endif // __WXWINCE__ } wxString str = GetLabel(); -- 2.45.2