X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00f79e3471e16cfadb5499152909cc6060842452..fb4760547ddede8555bc28427799e627608bd28e:/src/mac/carbon/gdiobj.cpp diff --git a/src/mac/carbon/gdiobj.cpp b/src/mac/carbon/gdiobj.cpp index 436c1b612d..76156134e0 100644 --- a/src/mac/carbon/gdiobj.cpp +++ b/src/mac/carbon/gdiobj.cpp @@ -15,11 +15,15 @@ #ifndef WX_PRECOMP #include "wx/gdicmn.h" + #include "wx/module.h" #endif -#include "wx/module.h" +#include "wx/link.h" #include "wx/mac/private.h" +// Linker will discard entire object file without this +wxFORCE_LINK_THIS_MODULE(gdiobj) + class wxStockGDIMac: public wxStockGDI, public wxModule { public: @@ -55,11 +59,11 @@ const wxFont* wxStockGDIMac::GetFont(Item item) { case FONT_NORMAL: font = new wxFont; - font->MacCreateThemeFont(kThemeSystemFont); + font->MacCreateFromThemeFont(kThemeSystemFont); break; case FONT_SMALL: font = new wxFont; - font->MacCreateThemeFont(kThemeSmallSystemFont); + font->MacCreateFromThemeFont(kThemeSmallSystemFont); break; default: font = const_cast(super::GetFont(item));