From d394f4791d95f0c2fedb94aa9109e4800596558d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 3 Jan 2002 23:08:59 +0000 Subject: [PATCH] made wxImageHander's default values consistent with wxImage (doesn't matter, wxImage passes index explicitly) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/imagbmp.h | 2 +- include/wx/image.h | 2 +- include/wx/imaggif.h | 2 +- include/wx/imagjpeg.h | 2 +- include/wx/imagpcx.h | 2 +- include/wx/imagpng.h | 2 +- include/wx/imagpnm.h | 2 +- include/wx/imagtiff.h | 2 +- include/wx/imagxpm.h | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/wx/imagbmp.h b/include/wx/imagbmp.h index 2fbccbf619..f2486514ff 100644 --- a/include/wx/imagbmp.h +++ b/include/wx/imagbmp.h @@ -51,7 +51,7 @@ public: #if wxUSE_STREAMS virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool DoCanRead( wxInputStream& stream ); protected: diff --git a/include/wx/image.h b/include/wx/image.h index 00d190e5c1..6cd7e942dc 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -43,7 +43,7 @@ public: wxImageHandler() { m_name = ""; m_extension = ""; m_type = 0; } #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual int GetImageCount( wxInputStream& stream ); diff --git a/include/wx/imaggif.h b/include/wx/imaggif.h index 14d31199a5..f0cffd7fca 100644 --- a/include/wx/imaggif.h +++ b/include/wx/imaggif.h @@ -38,7 +38,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif diff --git a/include/wx/imagjpeg.h b/include/wx/imagjpeg.h index da25d5c7ec..999bc889cb 100644 --- a/include/wx/imagjpeg.h +++ b/include/wx/imagjpeg.h @@ -36,7 +36,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif diff --git a/include/wx/imagpcx.h b/include/wx/imagpcx.h index f9c0dab411..1533483fff 100644 --- a/include/wx/imagpcx.h +++ b/include/wx/imagpcx.h @@ -37,7 +37,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif // wxUSE_STREAMS diff --git a/include/wx/imagpng.h b/include/wx/imagpng.h index caa8f23133..87ff7f124b 100644 --- a/include/wx/imagpng.h +++ b/include/wx/imagpng.h @@ -36,7 +36,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif diff --git a/include/wx/imagpnm.h b/include/wx/imagpnm.h index a2f151785f..8af0200a29 100644 --- a/include/wx/imagpnm.h +++ b/include/wx/imagpnm.h @@ -36,7 +36,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif diff --git a/include/wx/imagtiff.h b/include/wx/imagtiff.h index 55d3ff0689..e6f80b3eba 100644 --- a/include/wx/imagtiff.h +++ b/include/wx/imagtiff.h @@ -37,7 +37,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); virtual int GetImageCount( wxInputStream& stream ); diff --git a/include/wx/imagxpm.h b/include/wx/imagxpm.h index 7ffcaa926d..2b64bfb8bb 100644 --- a/include/wx/imagxpm.h +++ b/include/wx/imagxpm.h @@ -36,7 +36,7 @@ public: }; #if wxUSE_STREAMS - virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 ); + virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=-1 ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool DoCanRead( wxInputStream& stream ); #endif -- 2.45.2