Reduce the scope of some local variables
This commit is contained in:
@@ -857,10 +857,10 @@ wxBitmap::wxBitmap(const char bits[], int the_width, int the_height, int no_bits
|
||||
for ( int y = 0 ; y < the_height ; ++y , linestart += linesize, destptr += GetBitmapData()->GetBytesPerRow() )
|
||||
{
|
||||
unsigned char* destination = destptr;
|
||||
int index, bit, mask;
|
||||
|
||||
for ( int x = 0 ; x < the_width ; ++x )
|
||||
{
|
||||
int index, bit, mask;
|
||||
index = x / 8 ;
|
||||
bit = x % 8 ;
|
||||
mask = 1 << bit ;
|
||||
@@ -1311,11 +1311,11 @@ wxImage wxBitmap::ConvertToImage() const
|
||||
{
|
||||
unsigned char * maskp = mask ;
|
||||
const wxUint32 * source = (wxUint32*)sourcestart;
|
||||
unsigned char a, r, g, b;
|
||||
|
||||
for (int xx = 0; xx < width; xx++)
|
||||
{
|
||||
const wxUint32 color = *source++;
|
||||
unsigned char a, r, g, b;
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
a = ((color&0xFF000000) >> 24) ;
|
||||
r = ((color&0x00FF0000) >> 16) ;
|
||||
|
Reference in New Issue
Block a user