#if wxUSE_XPM_IN_OS2
#define FOR_MSW 1
- #include "../xpm/xpm.h"
+ #include "xpm.h"
#endif
#include "wx/xpmhand.h"
pRefData->m_nHeight = vBm.cy;
pRefData->m_nDepth = vBm.cPlanes * vBm.cBitCount;
pRefData->m_nNumColors = rXpmAttr.npixels;
-#if 0
+
if (pXmask)
{
wxMask* pMask = new wxMask();
));
pBitmap->SetMask(pMask);
}
-#endif
} // end of XpmToBitmap
IMPLEMENT_DYNAMIC_CLASS(wxXPMFileHandler, wxBitmapHandler)
,&vXpmAttr
);
::GpiDestroyPS(hPS);
+ ::DevCloseDC(hDC);
if (nErrorStatus == XpmSuccess)
{
XpmToBitmap( pBitmap
,(XpmAttributes *) NULL
);
::GpiDestroyPS(hPS);
+ ::DevCloseDC(hDC);
return (nErrorStatus == XpmSuccess);
}
return FALSE;
if (hPS)
{
vXpmAttr.valuemask = XpmReturnInfos | XpmColorTable;
+
int nErrorStatus = XpmCreateImageFromData( &hPS
,(char **)pData
,&pXimage
,&pXmask
,&vXpmAttr
);
- GpiDestroyPS(hPS);
+ ::GpiDestroyPS(hPS);
+ ::DevCloseDC(hDC);
if (nErrorStatus == XpmSuccess)
{
XpmToBitmap( pBitmap