static bool wxGIFHandler_WriteByte(wxOutputStream *, wxUint8);
static bool wxGIFHandler_WriteWord(wxOutputStream *, wxUint16);
static bool wxGIFHandler_WriteHeader(wxOutputStream *, int width, int height,
- bool loop, const wxRGB *pal, int palCount,
- const wxString& comment = wxEmptyString);
+ bool loop, const wxRGB *pal, int palCount);
static bool wxGIFHandler_WriteRect(wxOutputStream *, int width, int height);
#if wxUSE_PALETTE
static bool wxGIFHandler_WriteTerm(wxOutputStream *);
if (first)
{
ok = wxGIFHandler_WriteHeader(stream, width, height, loop,
- pal, palCount, image.GetOption(wxIMAGE_OPTION_GIF_COMMENT));
+ pal, palCount);
}
- ok = ok && wxGIFHandler_WriteControl(stream, maskIndex, delayMilliSecs)
+ ok = ok
+ && wxGIFHandler_WriteComment(stream,
+ image.GetOption(wxIMAGE_OPTION_GIF_COMMENT))
+ && wxGIFHandler_WriteControl(stream, maskIndex, delayMilliSecs)
&& wxGIFHandler_WriteByte(stream, GIF_MARKER_SEP)
&& wxGIFHandler_WriteRect(stream, width, height);
buf[0] = word & 0xff;
buf[1] = (word >> 8) & 0xff;
- return wxGIFHandler_Write(stream, &word, sizeof(word));
+ return wxGIFHandler_Write(stream, &buf, sizeof(buf));
}
bool wxGIFHandler_WriteHeader(wxOutputStream *stream, int width, int height,
- bool loop, const wxRGB *pal, int palCount, const wxString& comment)
+ bool loop, const wxRGB *pal, int palCount)
{
const int bpp = wxGIFHandler_BitSize(palCount);
wxUint8 buf[3];
ok = ok && wxGIFHandler_WriteLoop(stream);
}
- return ok && wxGIFHandler_WriteComment(stream, comment);
+ return ok;
}
bool wxGIFHandler_WriteRect(wxOutputStream *stream, int width, int height)