# include <fstream>
#endif
-#ifndef __WXMAC_X__
+#ifndef __DARWIN__
# include <windows.h>
#endif
#include "wx/msgdlg.h"
#include "wx/bitmap.h"
#include "wx/mac/pnghand.h"
#include "wx/mac/pngread.h"
+#include "wx/mac/private.h"
extern "C" {
#include "png.h"
if (lpbi)
{
- wxMacDestroyGWorld( lpbi ) ;
+ wxMacDestroyGWorld( (GWorldPtr) lpbi ) ;
}
lpbi = wxMacCreateGWorld( Width , Height , Depth);
if (lpbi)
{
delete[] RawImage ;
if (lpbi) {
- wxMacDestroyGWorld( lpbi ) ;
+ wxMacDestroyGWorld( (GWorldPtr) lpbi ) ;
}
delete m_palette;
}
void wxPNGReader::NullData()
{
if (lpbi) {
- wxMacDestroyGWorld( lpbi ) ;
+ wxMacDestroyGWorld( (GWorldPtr) lpbi ) ;
}
delete m_palette;
lpbi = NULL;
GetGWorld( &origPort , &origDevice ) ;
// ignore shapedc
- SetGWorld( lpbi , NULL ) ;
+ SetGWorld( (GWorldPtr) lpbi , NULL ) ;
do
{
// (unsigned char *)iter.GetRow();
if ( !GetPalette() )
return FALSE;
- ofstream str(filename);
+ wxSTD ofstream str(filename);
if ( str.bad() )
return FALSE;
return FALSE;
}
-bool wxPNGFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *pal)
+bool wxPNGFileHandler::SaveFile(const wxBitmap *bitmap, const wxString& name, int type, const wxPalette *pal)
{
return FALSE;
}