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