///////////////////////////////////////////////////////////////////////////////
-// Name: msw/gdiimage.cpp
+// Name: src/os2/gdiimage.cpp
// Purpose: wxGDIImage implementation
// Author: Vadim Zeitlin
// Modified by:
#ifndef WX_PRECOMP
#include "wx/string.h"
+ #include "wx/app.h"
#endif // WX_PRECOMP
#include "wx/os2/private.h"
-#include "wx/app.h"
#include "wx/os2/gdiimage.h"
#include "wx/listimpl.cpp"
,int WXUNUSED(nDepth) = 1
)
{
- return(FALSE);
+ return false;
}
virtual bool Save( wxGDIImage* WXUNUSED(pImage)
,int WXUNUSED(nType)
)
{
- return(FALSE);
+ return false;
}
virtual bool Load( wxGDIImage* pImage
,const wxString& rName
)
{
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
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
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)
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;