removing duplicate code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-01-13 04:38:16 +00:00
parent 4f61df823f
commit 5f1b3295f8

View File

@@ -342,7 +342,6 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
wxFont font ; wxFont font ;
#if wxOSX_USE_ATSU_TEXT #if wxOSX_USE_ATSU_TEXT
ControlSize size ;
ThemeFontID themeFont = kThemeSystemFont ; ThemeFontID themeFont = kThemeSystemFont ;
// we will get that from the settings later // we will get that from the settings later
@@ -352,23 +351,19 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
switch ( variant ) switch ( variant )
{ {
case wxWINDOW_VARIANT_NORMAL : case wxWINDOW_VARIANT_NORMAL :
size = kControlSizeNormal;
themeFont = kThemeSystemFont ; themeFont = kThemeSystemFont ;
break ; break ;
case wxWINDOW_VARIANT_SMALL : case wxWINDOW_VARIANT_SMALL :
size = kControlSizeSmall;
themeFont = kThemeSmallSystemFont ; themeFont = kThemeSmallSystemFont ;
break ; break ;
case wxWINDOW_VARIANT_MINI : case wxWINDOW_VARIANT_MINI :
// not always defined in the headers // not always defined in the headers
size = 3 ;
themeFont = 109 ; themeFont = 109 ;
break ; break ;
case wxWINDOW_VARIANT_LARGE : case wxWINDOW_VARIANT_LARGE :
size = kControlSizeLarge;
themeFont = kThemeSystemFont ; themeFont = kThemeSystemFont ;
break ; break ;