X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/892b89f3b79a756ba3c278c605b79a6fa377d60f..4c4d66e1e486b8f5d3356d324080be031884eb5e:/src/os2/pnghand.cpp diff --git a/src/os2/pnghand.cpp b/src/os2/pnghand.cpp index 2022d171f5..56cdb1f654 100644 --- a/src/os2/pnghand.cpp +++ b/src/os2/pnghand.cpp @@ -22,17 +22,17 @@ # include #endif +#define INCL_PM +#include + #include "wx/palette.h" #include "wx/bitmap.h" #include "wx/utils.h" -#define INCL_PM -#include - #include "wx/os2/pngread.h" extern "C" { -#include "../png/png.h" +#include "png.h" } extern "C" void png_read_init PNGARG((png_structp png_ptr)); @@ -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;