]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagpcx.cpp
remove run-time check for now-required GTK 2.4
[wxWidgets.git] / src / common / imagpcx.cpp
index 09a4612cbfdb76d203d19852e00cce996e1e50fd..fdbb60c16d4c1c3d5f884432a57572dd3fe474ac 100644 (file)
@@ -214,7 +214,7 @@ int ReadPCX(wxImage *image, wxInputStream& stream)
 
     image->Create(width, height);
 
-    if (!image->Ok())
+    if (!image->IsOk())
         return wxPCX_MEMERR;
 
     if ((p = (unsigned char *) malloc(bytesperline * nplanes)) == NULL)
@@ -331,7 +331,7 @@ int SavePCX(wxImage *image, wxOutputStream& stream)
     // according to PCX specs) and allocate space for one complete
     // scanline.
 
-    if (!image->Ok())
+    if (!image->IsOk())
         return wxPCX_INVFORMAT;
 
     width = image->GetWidth();