IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler)
#endif
-bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose )
+bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) )
{
int error;
bool wxPCXHandler::DoCanRead( wxInputStream& stream )
{
unsigned char c;
- off_t pos;
- pos = stream.TellI();
- stream.SeekI(0, wxFromStart);
c = stream.GetC();
- stream.SeekI(pos, wxFromStart);
+ stream.SeekI(-1, wxFromCurrent);
// not very safe, but this is all we can get from PCX header :-(
return (c == 10);