Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -118,7 +118,7 @@ bool wxDIB::Create(int width, int height, int depth)
|
||||
info->bmiHeader.biHeight = height;
|
||||
|
||||
info->bmiHeader.biPlanes = 1;
|
||||
info->bmiHeader.biBitCount = depth;
|
||||
info->bmiHeader.biBitCount = (WORD)depth;
|
||||
info->bmiHeader.biSizeImage = GetLineSize(width, depth)*height;
|
||||
|
||||
m_handle = ::CreateDIBSection
|
||||
@@ -603,7 +603,7 @@ wxPalette *wxDIB::CreatePalette() const
|
||||
|
||||
// initialize the palette header
|
||||
pPalette->palVersion = 0x300; // magic number, not in docs but works
|
||||
pPalette->palNumEntries = biClrUsed;
|
||||
pPalette->palNumEntries = (WORD)biClrUsed;
|
||||
|
||||
// and the colour table (it starts right after the end of the header)
|
||||
const RGBQUAD *pRGB = (RGBQUAD *)((char *)&ds.dsBmih + ds.dsBmih.biSize);
|
||||
|
Reference in New Issue
Block a user