osx regrouping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
@@ -50,6 +51,9 @@ void wxStockGDIMac::OnExit()
|
||||
{
|
||||
}
|
||||
|
||||
extern wxFont* CreateNormalFont();
|
||||
extern wxFont* CreateSmallFont();
|
||||
|
||||
const wxFont* wxStockGDIMac::GetFont(Item item)
|
||||
{
|
||||
wxFont* font = static_cast<wxFont*>(ms_stockObject[item]);
|
||||
@@ -57,6 +61,7 @@ const wxFont* wxStockGDIMac::GetFont(Item item)
|
||||
{
|
||||
switch (item)
|
||||
{
|
||||
#if wxOSX_USE_COCOA_OR_CARBON
|
||||
case FONT_NORMAL:
|
||||
font = new wxFont;
|
||||
font->MacCreateFromThemeFont(kThemeSystemFont);
|
||||
@@ -65,6 +70,14 @@ const wxFont* wxStockGDIMac::GetFont(Item item)
|
||||
font = new wxFont;
|
||||
font->MacCreateFromThemeFont(kThemeSmallSystemFont);
|
||||
break;
|
||||
#else
|
||||
case FONT_NORMAL:
|
||||
font = CreateNormalFont() ;
|
||||
break;
|
||||
case FONT_SMALL:
|
||||
font = CreateSmallFont();
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
font = const_cast<wxFont*>(super::GetFont(item));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user