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@29682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -426,7 +426,7 @@ wxBitmap::wxBitmap(const char bits[], int width, int height, int depth)
|
||||
for ( int bits = 0; bits < 8; bits++)
|
||||
{
|
||||
reversed <<= 1;
|
||||
reversed |= (val & 0x01);
|
||||
reversed |= (unsigned char)(val & 0x01);
|
||||
val >>= 1;
|
||||
}
|
||||
*dst++ = reversed;
|
||||
@@ -1031,7 +1031,7 @@ wxBitmap wxBitmap::GetSubBitmap( const wxRect& rect) const
|
||||
#ifndef __WXMICROWIN__
|
||||
// handle alpha channel, if any
|
||||
if (HasAlpha())
|
||||
ret.UseAlpha();
|
||||
ret.UseAlpha();
|
||||
|
||||
// copy bitmap data
|
||||
MemoryHDC dcSrc,
|
||||
|
Reference in New Issue
Block a user