X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fea35690f171f9677bd9f949c0af3dc16d1a9576..00b89a1d1da61a1f842db63b244ad08c0554121c:/src/mgl/dcmemory.cpp diff --git a/src/mgl/dcmemory.cpp b/src/mgl/dcmemory.cpp index d09e8080f8..a5a61a33f6 100644 --- a/src/mgl/dcmemory.cpp +++ b/src/mgl/dcmemory.cpp @@ -40,7 +40,7 @@ wxMemoryDC::~wxMemoryDC() void wxMemoryDC::DoSelect(const wxBitmap& bitmap) { - if ( bitmap.Ok() ) + if ( bitmap.IsOk() ) { m_selected = bitmap; SetMGLDC(m_selected.CreateTmpDC(), TRUE); @@ -49,7 +49,7 @@ void wxMemoryDC::DoSelect(const wxBitmap& bitmap) void wxMemoryDC::SetPen(const wxPen &pen) { - wxCHECK_RET( Ok(), wxT("invalid dc") ); + wxCHECK_RET( IsOk(), wxT("invalid dc") ); if ( GetDepth() == 1 && *wxTRANSPARENT_PEN != pen ) { @@ -66,7 +66,7 @@ void wxMemoryDC::SetPen(const wxPen &pen) void wxMemoryDC::SetBrush(const wxBrush &brush) { - wxCHECK_RET( Ok(), wxT("invalid dc") ); + wxCHECK_RET( IsOk(), wxT("invalid dc") ); if ( GetDepth() == 1 && *wxTRANSPARENT_BRUSH != brush ) { @@ -83,7 +83,7 @@ void wxMemoryDC::SetBrush(const wxBrush &brush) void wxMemoryDC::SetTextForeground(const wxColour &col) { - wxCHECK_RET( Ok(), wxT("invalid dc") ); + wxCHECK_RET( IsOk(), wxT("invalid dc") ); if ( GetDepth() == 1 ) { @@ -100,7 +100,7 @@ void wxMemoryDC::SetTextForeground(const wxColour &col) void wxMemoryDC::SetTextBackground(const wxColour &col) { - wxCHECK_RET( Ok(), wxT("invalid dc") ); + wxCHECK_RET( IsOk(), wxT("invalid dc") ); if ( GetDepth() == 1 ) {