#include "wx/app.h"
#include "wx/dc.h"
#include "wx/utils.h"
+#include "wx/settings.h"
#include "wx/log.h"
#include <string.h>
{
x = topLeft.x;
y = topLeft.y;
- width = bottomRight.x - topLeft.x;
- height = bottomRight.y - topLeft.y;
+ width = bottomRight.x - topLeft.x + 1;
+ height = bottomRight.y - topLeft.y + 1;
if (width < 0)
{
#endif
// why under MSW fonts shouldn't have the standard system size?
+/*
#ifdef __WXMSW__
static const int sizeFont = 10;
#else
+#endif
+*/
+#if defined(__WXPM__)
static const int sizeFont = 12;
+ wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL);
+#else
+ wxNORMAL_FONT = new wxFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+ static const int sizeFont = wxNORMAL_FONT->GetPointSize();
#endif
- 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);
return wxSize(x, y);
}
+wxSize wxGetDisplaySizeMM()
+{
+ int x, y;
+ wxDisplaySizeMM(& x, & y);
+ return wxSize(x, y);
+}
+
wxResourceCache::~wxResourceCache ()
{
wxNode *node = First ();