X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7ac5e1c9088dedba495f5af5dbfb23ca89487a78..1d3dfc57e77c64a4691fae47b566bcfb99eceb48:/src/osx/carbon/gdiobj.cpp diff --git a/src/osx/carbon/gdiobj.cpp b/src/osx/carbon/gdiobj.cpp index f768d01bea..31ec9c8017 100644 --- a/src/osx/carbon/gdiobj.cpp +++ b/src/osx/carbon/gdiobj.cpp @@ -51,9 +51,6 @@ void wxStockGDIMac::OnExit() { } -extern wxFont* CreateNormalFont(); -extern wxFont* CreateSmallFont(); - const wxFont* wxStockGDIMac::GetFont(Item item) { wxFont* font = static_cast(ms_stockObject[item]); @@ -61,31 +58,14 @@ const wxFont* wxStockGDIMac::GetFont(Item item) { switch (item) { -#if wxOSX_USE_COCOA_OR_CARBON case FONT_NORMAL: font = new wxFont; -#if wxOSX_USE_ATSU_TEXT - font->MacCreateFromThemeFont(kThemeSystemFont); -#else - font->MacCreateFromUIFont(kCTFontSystemFontType); -#endif + font->CreateSystemFont(wxOSX_SYSTEM_FONT_NORMAL); break; case FONT_SMALL: font = new wxFont; -#if wxOSX_USE_ATSU_TEXT - font->MacCreateFromThemeFont(kThemeSmallSystemFont); -#else - font->MacCreateFromUIFont(kCTFontSmallSystemFontType); -#endif - break; -#else - case FONT_NORMAL: - font = CreateNormalFont() ; - break; - case FONT_SMALL: - font = CreateSmallFont(); + font->CreateSystemFont(wxOSX_SYSTEM_FONT_SMALL); break; -#endif default: font = const_cast(super::GetFont(item)); break;