X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb46a9a6c6f291806a5fecbb848930c344e17e11..24fcf68943d4d6baa9c0a5eec9234b33621abdd0:/src/os2/pnghand.cpp?ds=sidebyside diff --git a/src/os2/pnghand.cpp b/src/os2/pnghand.cpp index c5c3bad288..ef2eacda48 100644 --- a/src/os2/pnghand.cpp +++ b/src/os2/pnghand.cpp @@ -22,13 +22,13 @@ # include #endif -#define INCL_DOS -#define INCL_PM -#define INCL_GPI -#include #include "wx/palette.h" #include "wx/bitmap.h" #include "wx/utils.h" + +#define INCL_PM +#include + #include "wx/os2/pngread.h" extern "C" { @@ -56,8 +56,7 @@ extern "C" void png_write_init PNGARG((png_structp png_ptr)); #endif -void -ima_png_error(png_struct *png_ptr, char *message) +void ima_png_error(png_struct *png_ptr, char *message) { // wxMessageBox(message, "PNG error"); @@ -765,7 +764,7 @@ bool wxPNGReader::SaveXPM(wxChar *filename, wxChar *name) IMPLEMENT_DYNAMIC_CLASS(wxPNGFileHandler, wxBitmapHandler) -bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags, +bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, HPS hPs, long flags, int desiredWidth, int desiredHeight) { wxPNGReader reader;