IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxWindowDC)
-wxMemoryDC::wxMemoryDC(void)
+void wxMemoryDC::Init()
{
m_ok = true;
m_display = wxGetDisplay();
GCForeground | GCBackground | GCGraphicsExposures | GCLineWidth | GCSubwindowMode,
&gcvalues);
- m_backgroundPixel = (int) gcvalues.background;
+ m_backgroundPixel = gcvalues.background;
SetBrush (* wxWHITE_BRUSH);
SetPen (* wxBLACK_PEN);
GCForeground | GCBackground | GCGraphicsExposures | GCLineWidth | GCSubwindowMode,
&gcvalues);
- m_backgroundPixel = (int) gcvalues.background;
+ m_backgroundPixel = gcvalues.background;
SetBrush (* wxWHITE_BRUSH);
SetPen (* wxBLACK_PEN);
{
}
-void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
+void wxMemoryDC::DoSelect( const wxBitmap& bitmap )
{
m_bitmap = bitmap;
GCForeground | GCBackground | GCGraphicsExposures | GCLineWidth | GCSubwindowMode,
&gcvalues);
- m_backgroundPixel = (int) gcvalues.background;
+ m_backgroundPixel = gcvalues.background;
m_ok = true;
SetBrush (* wxWHITE_BRUSH);