#pragma implementation "gdicmn.h"
#endif
+#ifdef __VMS
+#define XtDisplay XTDISPLAY
+#endif
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#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)
{
delete col;
node = next;
}
+#ifdef __WXPM__
+ delete [] m_palTable;
+#endif
}
// Colour database stuff
{wxT("MEDIUM GREY"), 100, 100, 100},
};
- for ( size_t n = 0; n < WXSIZEOF(wxColourTable); n++ )
+ size_t n;
+
+ for ( n = 0; n < WXSIZEOF(wxColourTable); n++ )
{
const wxColourDesc& cc = wxColourTable[n];
Append(cc.name, new wxColour(cc.r,cc.g,cc.b));
}
+#ifdef __WXPM__
+ m_palTable = new long[n];
+ for ( n = 0; n < WXSIZEOF(wxColourTable); n++ )
+ {
+ const wxColourDesc& cc = wxColourTable[n];
+ m_palTable[n] = OS2RGB(cc.r,cc.g,cc.b);
+ }
+ m_nSize = n;
+#endif
}
/*
#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 ();