X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f0c8f31f407ecfce909060464c0ea655221cdab..08670ea85abf4b4946a9ce64971b591d7b1ee30b:/src/osx/carbon/gdiobj.cpp?ds=inline diff --git a/src/osx/carbon/gdiobj.cpp b/src/osx/carbon/gdiobj.cpp index ad33a80ba9..4a7a3db352 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: @@ -20,6 +20,7 @@ #include "wx/link.h" #include "wx/osx/private.h" +#include "wx/font.h" // Linker will discard entire object file without this wxFORCE_LINK_THIS_MODULE(gdiobj) @@ -58,12 +59,10 @@ const wxFont* wxStockGDIMac::GetFont(Item item) switch (item) { case FONT_NORMAL: - font = new wxFont; - font->MacCreateFromThemeFont(kThemeSystemFont); + font = new wxFont(wxOSX_SYSTEM_FONT_NORMAL); break; case FONT_SMALL: - font = new wxFont; - font->MacCreateFromThemeFont(kThemeSmallSystemFont); + font = new wxFont(wxOSX_SYSTEM_FONT_SMALL); break; default: font = const_cast(super::GetFont(item));