X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20ca5632798e70467bb90624cc66ef1f06ebcd28..f72ed385786eccca7a73cbace9bae975e3a2ae21:/src/msw/dib.cpp diff --git a/src/msw/dib.cpp b/src/msw/dib.cpp index 14a44e2339..4eff321612 100644 --- a/src/msw/dib.cpp +++ b/src/msw/dib.cpp @@ -660,7 +660,7 @@ wxPalette *wxDIB::CreatePalette() const bool wxDIB::Create(const wxImage& image, PixelFormat pf) { - wxCHECK_MSG( image.Ok(), false, wxT("invalid wxImage in wxDIB ctor") ); + wxCHECK_MSG( image.IsOk(), false, wxT("invalid wxImage in wxDIB ctor") ); const int h = image.GetHeight(); const int w = image.GetWidth(); @@ -753,7 +753,7 @@ wxImage wxDIB::ConvertToImage() const const int w = GetWidth(); const int h = GetHeight(); wxImage image(w, h, false /* don't bother clearing memory */); - if ( !image.Ok() ) + if ( !image.IsOk() ) { wxFAIL_MSG( wxT("could not allocate data for image") ); return wxNullImage;