X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..aa926768a9329b4eb4804c89de8da2061549708d:/src/osx/carbon/gdiobj.cpp?ds=sidebyside diff --git a/src/osx/carbon/gdiobj.cpp b/src/osx/carbon/gdiobj.cpp index 81fb05c458..31ec9c8017 100644 --- a/src/osx/carbon/gdiobj.cpp +++ b/src/osx/carbon/gdiobj.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/gdiobj.cpp +// Name: src/osx/carbon/gdiobj.cpp // Purpose: wxGDIObject class // Author: Stefan Csomor // Modified by: @@ -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,23 +58,14 @@ const wxFont* wxStockGDIMac::GetFont(Item item) { switch (item) { -#if wxOSX_USE_COCOA_OR_CARBON case FONT_NORMAL: font = new wxFont; - font->MacCreateFromThemeFont(kThemeSystemFont); + font->CreateSystemFont(wxOSX_SYSTEM_FONT_NORMAL); break; case FONT_SMALL: font = new wxFont; - font->MacCreateFromThemeFont(kThemeSmallSystemFont); - break; -#else - case FONT_NORMAL: - font = CreateNormalFont() ; + font->CreateSystemFont(wxOSX_SYSTEM_FONT_SMALL); break; - case FONT_SMALL: - font = CreateSmallFont(); - break; -#endif default: font = const_cast(super::GetFont(item)); break;