wxMemoryDCImpl::wxMemoryDCImpl( wxDC *owner )
: wxWindowDCImpl( owner )
-{
+{
Init();
}
wxMemoryDCImpl::wxMemoryDCImpl( wxDC *owner, wxBitmap& bitmap )
: wxWindowDCImpl( owner )
-{
- Init();
+{
+ Init();
DoSelect(bitmap);
}
Destroy();
m_selected = bitmap;
- if (m_selected.Ok())
+ if (m_selected.IsOk())
{
if (m_selected.GetPixmap())
{
void wxMemoryDCImpl::DoGetSize( int *width, int *height ) const
{
- if (m_selected.Ok())
+ if (m_selected.IsOk())
{
if (width) (*width) = m_selected.GetWidth();
if (height) (*height) = m_selected.GetHeight();