X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..64ea838d8f4d1853b7d850db93ee565e901d099a:/src/os2/dcmemory.cpp diff --git a/src/os2/dcmemory.cpp b/src/os2/dcmemory.cpp index 88bda87c90..64acc9f90d 100644 --- a/src/os2/dcmemory.cpp +++ b/src/os2/dcmemory.cpp @@ -29,23 +29,23 @@ IMPLEMENT_ABSTRACT_CLASS(wxMemoryDCImpl, wxPMDCImpl) // Memory DC ///////////////////////////////////////////////////////////////////////////// -wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner ) +wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner ) : wxPMDCImpl( owner ) { - CreateCompatible(NULL); - Init(); + CreateCompatible(NULL); + Init(); } -wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ) - : wxPMDCImpl( owner ) -{ - CreateCompatible(NULL); - Init(); +wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ) + : wxPMDCImpl( owner ) +{ + CreateCompatible(NULL); + Init(); DoSelect(bitmap); } wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *pOldDC) - : wxPMDCImpl( owner ) + : wxPMDCImpl( owner ) { wxCHECK_RET( pOldDC, wxT("NULL dc in wxMemoryDC ctor") ); @@ -139,7 +139,7 @@ void wxMemoryDCImpl::DoSelect( if (m_hOldBitmap) { ::GpiSetBitmap(m_hPS, NULLHANDLE); - if (m_vSelectedBitmap.Ok()) + if (m_vSelectedBitmap.IsOk()) { m_vSelectedBitmap.SetSelectedInto(NULL); m_vSelectedBitmap = wxNullBitmap; @@ -201,7 +201,7 @@ void wxMemoryDCImpl::DoGetSize( , int* pHeight ) const { - if (!m_vSelectedBitmap.Ok()) + if (!m_vSelectedBitmap.IsOk()) { *pWidth = 0; *pHeight = 0;