// Purpose: wxImage PCX handler
// Author: Guillermo Rodriguez Garcia <guille@iies.es>
// Version: 1.1
-// CVS-ID: $Id$
// Copyright: (c) 1999 Guillermo Rodriguez Garcia
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
image->Create(width, height);
- if (!image->Ok())
+ if (!image->IsOk())
return wxPCX_MEMERR;
if ((p = (unsigned char *) malloc(bytesperline * nplanes)) == NULL)
// according to PCX specs) and allocate space for one complete
// scanline.
- if (!image->Ok())
+ if (!image->IsOk())
return wxPCX_INVFORMAT;
width = image->GetWidth();