1. new wxList code
2. fixes to allow compilation at -W4 with VisualC++ 6.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -473,7 +473,8 @@ BOOL ReadDIB(LPSTR lpFileName, HBITMAP *bitmap, HPALETTE *palette)
|
||||
goto ErrExit;
|
||||
}
|
||||
|
||||
if (!(nNumColors = (WORD)lpbi->biClrUsed))
|
||||
nNumColors = (WORD)lpbi->biClrUsed;
|
||||
if ( nNumColors == 0 )
|
||||
{
|
||||
/* no color table for 24-bit, default size otherwise */
|
||||
if (lpbi->biBitCount != 24)
|
||||
@@ -594,7 +595,8 @@ BOOL PASCAL MakeBitmapAndPalette(HDC hDC, HANDLE hDIB,
|
||||
lpInfo = (LPBITMAPINFOHEADER) GlobalLock(hDIB);
|
||||
#endif
|
||||
|
||||
if ((hPalette = MakeDIBPalette(lpInfo)))
|
||||
hPalette = MakeDIBPalette(lpInfo);
|
||||
if ( hPalette )
|
||||
{
|
||||
// Need to realize palette for converting DIB to bitmap.
|
||||
hOldPal = SelectPalette(hDC, hPalette, TRUE);
|
||||
|
Reference in New Issue
Block a user