return res + 1;
}
-bool wxFileDataObject::SetData(size_t size, const void *buf)
+bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf)
{
// VZ: old format
#if 0
{
Clear();
+#if wxUSE_LIBPNG
m_pngSize = size;
m_pngData = malloc(m_pngSize);
m_bitmap = image.ConvertToBitmap();
return m_bitmap.Ok();
+#else
+ return FALSE;
+#endif
}
void wxBitmapDataObject::DoConvertToPng()
{
+#if wxUSE_LIBPNG
if (!m_bitmap.Ok())
return;
wxMemoryOutputStream mstream( (char*) m_pngData, m_pngSize );
handler.SaveFile( &image, mstream );
+#endif
}