**************************************************************************/
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);
#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))