X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fce127d758a53bec28bce0c66f52a2e03ae9bf4b..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/motif/dc.cpp diff --git a/src/motif/dc.cpp b/src/motif/dc.cpp index 0a7d137aca..4e83cd78e6 100644 --- a/src/motif/dc.cpp +++ b/src/motif/dc.cpp @@ -14,6 +14,7 @@ #ifndef WX_PRECOMP #include "wx/dcmemory.h" + #include "wx/icon.h" #endif #include "wx/motif/dc.h" @@ -35,14 +36,14 @@ wxMotifDCImpl::wxMotifDCImpl(wxDC *owner) void wxMotifDCImpl::DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y) { wxCHECK_RET( IsOk(), "invalid dc" ); - wxCHECK_RET( icon.Ok(), "invalid icon" ); + wxCHECK_RET( icon.IsOk(), "invalid icon" ); DoDrawBitmap(icon, x, y, true); } void wxMotifDCImpl::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask ) { - wxCHECK_RET( bitmap.Ok(), "invalid bitmap" ); + wxCHECK_RET( bitmap.IsOk(), "invalid bitmap" ); wxMemoryDC memDC; memDC.SelectObjectAsSource(bitmap);