#endif
#include <windows.h>
+#include <wx/palette.h>
+#include <wx/bitmap.h>
#include <wx/msw/pngread.h>
#include <wx/msw/dibutils.h>
ColorType = (colortype>=0) ? colortype: ((Depth>8) ? COLORTYPE_COLOR: 0);
if (lpbi) {
+#ifdef __WIN16__
+ GlobalFreePtr((unsigned int) lpbi);
+#else
GlobalFreePtr(lpbi);
+#endif
// delete Palette;
}
RawImage = 0;
wxPNGReader::~wxPNGReader ( )
{
if (lpbi) {
+#ifdef __WIN16__
+ GlobalFreePtr((unsigned int) lpbi);
+#else
GlobalFreePtr(lpbi);
+#endif
delete Palette;
}
}