X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/736b80cd76cd7770c29987c2c289975ae891a5b8..c13cace12594b37706e9520a6fbd602c949f8127:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 4e35df6256..cdce7ecaba 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -36,6 +36,7 @@ #include "wx/app.h" #include "wx/dc.h" #include "wx/utils.h" +#include "wx/settings.h" #include "wx/log.h" #include @@ -360,13 +361,18 @@ void wxInitializeStockObjects () #endif // why under MSW fonts shouldn't have the standard system size? +/* #ifdef __WXMSW__ static const int sizeFont = 10; #else static const int sizeFont = 12; #endif +*/ + +// wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL); + wxNORMAL_FONT = new wxFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); + static const int sizeFont = wxNORMAL_FONT->GetPointSize(); - wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL); wxSMALL_FONT = new wxFont (sizeFont - 2, wxSWISS, wxNORMAL, wxNORMAL); wxITALIC_FONT = new wxFont (sizeFont, wxROMAN, wxITALIC, wxNORMAL); wxSWISS_FONT = new wxFont (sizeFont, wxSWISS, wxNORMAL, wxNORMAL); @@ -685,6 +691,13 @@ wxSize wxGetDisplaySize() return wxSize(x, y); } +wxSize wxGetDisplaySizeMM() +{ + int x, y; + wxDisplaySizeMM(& x, & y); + return wxSize(x, y); +} + wxResourceCache::~wxResourceCache () { wxNode *node = First ();