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
}
/*
#else
#endif
*/
-#if defined(__WXPM__)
+#if defined(__WXPM__) || defined(__WXMAC__)
static const int sizeFont = 12;
wxNORMAL_FONT = new wxFont (sizeFont, wxMODERN, wxNORMAL, wxNORMAL);
#else