X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/848bc5ba1888bfa9fcbf5719b68a155ece28d7f6..270a909e20a2c652fd816ad14407113ad0319c9d:/src/common/image.cpp diff --git a/src/common/image.cpp b/src/common/image.cpp index 96d3c58d8a..c714ea6b5b 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -656,7 +656,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxImageHandler,wxObject) #endif #if wxUSE_STREAMS -bool wxImageHandler::LoadFile( wxImage *WXUNUSED(image), wxInputStream& WXUNUSED(stream), bool WXUNUSED(verbose) ) +bool wxImageHandler::LoadFile( wxImage *WXUNUSED(image), wxInputStream& WXUNUSED(stream), bool WXUNUSED(verbose), int WXUNUSED(index) ) { return FALSE; } @@ -666,9 +666,13 @@ bool wxImageHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSE return FALSE; } +int wxImageHandler::GetImageCount( wxInputStream& WXUNUSED(stream) ) +{ + return 1; +} + bool wxImageHandler::CanRead( const wxString& name ) { -#if wxUSE_STREAMS if (wxFileExists(name)) { wxFileInputStream stream(name); @@ -680,13 +684,9 @@ bool wxImageHandler::CanRead( const wxString& name ) return FALSE; } -#else // !wxUSE_STREAMS return FALSE; -#endif // wxUSE_STREAMS } - - #endif // wxUSE_STREAMS //-----------------------------------------------------------------------------