X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6670f56440ae9209b3e2e51e06acf3bc5aaf1905..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/os2/gdiimage.cpp?ds=inline diff --git a/src/os2/gdiimage.cpp b/src/os2/gdiimage.cpp index 99e9bc724c..80d1cdebef 100644 --- a/src/os2/gdiimage.cpp +++ b/src/os2/gdiimage.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: msw/gdiimage.cpp +// Name: src/os2/gdiimage.cpp // Purpose: wxGDIImage implementation // Author: Vadim Zeitlin // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "gdiimage.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -34,7 +30,7 @@ #include "wx/os2/gdiimage.h" #include "wx/listimpl.cpp" -WX_DEFINE_LIST(wxGDIImageHandlerList); +WX_DEFINE_LIST(wxGDIImageHandlerList) // ---------------------------------------------------------------------------- // private classes @@ -124,7 +120,7 @@ public: ,int WXUNUSED(nDepth) = 1 ) { - return(FALSE); + return false; } virtual bool Save( wxGDIImage* WXUNUSED(pImage) @@ -132,7 +128,7 @@ public: ,int WXUNUSED(nType) ) { - return(FALSE); + return false; } virtual bool Load( wxGDIImage* pImage ,const wxString& rName @@ -143,7 +139,7 @@ public: ) { wxIcon* pIcon = wxDynamicCast(pImage, wxIcon); - wxCHECK_MSG(pIcon, FALSE, _T("wxIconHandler only works with icons")); + wxCHECK_MSG(pIcon, false, _T("wxIconHandler only works with icons")); return LoadIcon( pIcon ,rName @@ -219,12 +215,10 @@ private: // wxWin macros // ---------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARIES - IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler) - IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler) - IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxObject) - IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject) -#endif +IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler) +IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler) +IMPLEMENT_DYNAMIC_CLASS(wxICOFileHandler, wxObject) +IMPLEMENT_DYNAMIC_CLASS(wxICOResourceHandler, wxObject) // ============================================================================ // implementation @@ -401,7 +395,7 @@ bool wxBMPFileHandler::LoadFile( wxBitmap* pBitmap, int WXUNUSED(nDesiredWidth), int WXUNUSED(nDesiredHeight) ) { -#if wxUSE_IMAGE_LOADING_IN_OS2 +#if defined(wxUSE_IMAGE_LOADING_IN_OS2) && wxUSE_IMAGE_LOADING_IN_OS2 wxPalette* pPalette = NULL; bool bSuccess = false; /* wxLoadIntoBitmap( WXSTRINGCAST rName @@ -428,7 +422,7 @@ bool wxBMPFileHandler::SaveFile( wxBitmap* pBitmap, int WXUNUSED(nType), const wxPalette* pPal ) { -#if wxUSE_IMAGE_LOADING_IN_OS2 +#if defined(wxUSE_IMAGE_LOADING_IN_OS2) && wxUSE_IMAGE_LOADING_IN_OS2 wxPalette* pActualPalette = (wxPalette *)pPal; if (!pActualPalette) @@ -456,7 +450,7 @@ bool wxICOFileHandler::LoadIcon( wxIcon* pIcon, int WXUNUSED(nDesiredWidth), int WXUNUSED(nDesiredHeight) ) { -#if wxUSE_RESOURCE_LOADING_IN_OS2 +#if defined(wxUSE_RESOURCE_LOADING_IN_OS2) && wxUSE_RESOURCE_LOADING_IN_OS2 pIcon->UnRef(); return false;