X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbcdf8bc7ca806d8278c7cb6d09d5590378b67d8..2df7be7f2cca699a02ee0c9ce69de9bfe6b0922f:/include/wx/msw/dibutils.h?ds=sidebyside diff --git a/include/wx/msw/dibutils.h b/include/wx/msw/dibutils.h index 746660d688..152f67a2c7 100644 --- a/include/wx/msw/dibutils.h +++ b/include/wx/msw/dibutils.h @@ -41,8 +41,8 @@ typedef HANDLE HDIB; **************************************************************************/ void ClearSystemPalette(void); -PDIB DibOpenFile(LPSTR szFile); -int DibWriteFile(LPSTR szFile, LPBITMAPINFOHEADER lpbi); +PDIB DibOpenFile(LPTSTR szFile); +int DibWriteFile(LPTSTR szFile, LPBITMAPINFOHEADER lpbi); BOOL DibSetUsage(PDIB pdib, HPALETTE hpal,UINT wUsage); PDIB DibCreate(int bits, int dx, int dy); BOOL DibMapToPalette(PDIB pdib, HPALETTE hpal); @@ -112,9 +112,10 @@ PDIB DibReadBitmapInfo(HFILE fh); #define FixBitmapInfo(lpbi) if ((lpbi)->biSizeImage == 0) \ (lpbi)->biSizeImage = DibSizeImage(lpbi); \ if ((lpbi)->biClrUsed == 0) \ - (lpbi)->biClrUsed = DibNumColors(lpbi); \ - if ((lpbi)->biCompression == BI_BITFIELDS && (lpbi)->biClrUsed == 0) \ - ; // (lpbi)->biClrUsed = 3; + (lpbi)->biClrUsed = DibNumColors(lpbi); + +// if ((lpbi)->biCompression == BI_BITFIELDS && (lpbi)->biClrUsed == 0) +// ; // (lpbi)->biClrUsed = 3; #define DibInfo(pDIB) ((BITMAPINFO FAR *)(pDIB))