X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..520e470fdd0daef09c77938db642e4583933c90d:/src/msw/pnghand.cpp diff --git a/src/msw/pnghand.cpp b/src/msw/pnghand.cpp index 554e1cca16..bea92c6138 100644 --- a/src/msw/pnghand.cpp +++ b/src/msw/pnghand.cpp @@ -24,7 +24,16 @@ #include #include #include + +#if wxUSE_IOSTREAMH #include +#else +#include +# ifdef _MSC_VER + using namespace std; +# endif +#endif + #include #include #include @@ -271,7 +280,7 @@ bool wxPNGReader::InstantiateBitmap(wxBitmap *bitmap) HDC dc2 = GetDC(NULL); HBITMAP tmpBitmap = ::CreateCompatibleBitmap(dc2, GetWidth(), GetHeight()); ReleaseDC(NULL, dc2); - HBITMAP oldBitmap = ::SelectObject(dc, tmpBitmap); + HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, tmpBitmap); if ( Palette ) { @@ -342,7 +351,7 @@ wxMask *wxPNGReader::CreateMask(void) HBITMAP hBitmap = ::CreateBitmap(GetWidth(), GetHeight(), 1, 1, NULL); HDC dc = ::CreateCompatibleDC(NULL); - HBITMAP oldBitmap = ::SelectObject(dc, hBitmap); + HBITMAP oldBitmap = (HBITMAP) ::SelectObject(dc, hBitmap); int bgIndex = GetBGIndex(); @@ -749,7 +758,7 @@ bool wxPNGReader::SaveXPM(char *filename, char *name) IMPLEMENT_DYNAMIC_CLASS(wxPNGFileHandler, wxBitmapHandler) -bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, const long flags, +bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, long flags, int desiredWidth, int desiredHeight) { wxPNGReader reader; @@ -761,7 +770,7 @@ bool wxPNGFileHandler::LoadFile(wxBitmap *bitmap, const wxString& name, const lo return FALSE; } -bool wxPNGFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, const int type, const wxPalette *pal) +bool wxPNGFileHandler::SaveFile(wxBitmap *bitmap, const wxString& name, int type, const wxPalette *pal) { return FALSE; }