Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxNOT_FOUND, TRUE/true, FALSE/false, !!/!IsEmpty().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -231,7 +231,7 @@ wxImage wxImage::ShrinkBy( int xFactor , int yFactor ) const
|
||||
{
|
||||
if( xFactor == 1 && yFactor == 1 )
|
||||
return Copy() ;
|
||||
|
||||
|
||||
wxImage image;
|
||||
|
||||
wxCHECK_MSG( Ok(), image, wxT("invalid image") );
|
||||
@@ -242,7 +242,7 @@ wxImage wxImage::ShrinkBy( int xFactor , int yFactor ) const
|
||||
|
||||
long old_height = M_IMGDATA->m_height,
|
||||
old_width = M_IMGDATA->m_width;
|
||||
|
||||
|
||||
wxCHECK_MSG( (old_height > 0) && (old_width > 0), image,
|
||||
wxT("invalid old image size") );
|
||||
|
||||
@@ -265,14 +265,14 @@ wxImage wxImage::ShrinkBy( int xFactor , int yFactor ) const
|
||||
maskRed = M_IMGDATA->m_maskRed;
|
||||
maskGreen = M_IMGDATA->m_maskGreen;
|
||||
maskBlue =M_IMGDATA->m_maskBlue ;
|
||||
|
||||
|
||||
image.SetMaskColour( M_IMGDATA->m_maskRed,
|
||||
M_IMGDATA->m_maskGreen,
|
||||
M_IMGDATA->m_maskBlue );
|
||||
}
|
||||
char unsigned *source_data = M_IMGDATA->m_data;
|
||||
char unsigned *target_data = data;
|
||||
|
||||
|
||||
for (long y = 0; y < height; y++)
|
||||
{
|
||||
for (long x = 0; x < width; x++)
|
||||
@@ -935,7 +935,7 @@ bool wxImage::SetMaskFromImage(const wxImage& mask,
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool wxImage::ConvertAlphaToMask(unsigned char threshold)
|
||||
{
|
||||
if (!HasAlpha())
|
||||
|
Reference in New Issue
Block a user