#ifndef WX_PRECOMP
#include "wx/utils.h"
+ #include "wx/settings.h"
#endif
-#include "wx/settings.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxWindowDC)
-wxMemoryDC::wxMemoryDC(void)
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
{
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);
SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
+
+ if ( bitmap.IsOk() )
+ SelectObject(bitmap);
}
wxMemoryDC::wxMemoryDC( wxDC* dc )
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;
m_ok = true;
SetBrush (* wxWHITE_BRUSH);
if (height) (*height) = 0;
};
}
-
-