MSVC6 return warning fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2004-08-16 15:32:07 +00:00
parent 55f3fe9d47
commit 94406a493c

View File

@ -947,10 +947,10 @@ bool wxImage::ConvertAlphaToMask(unsigned threshold)
wxLogError( _("No unused colour in image being masked.") );
return false;
}
SetMask(true);
SetMaskColour(mr, mg, mb);
unsigned char *imgdata = GetData();
unsigned char *alphadata = GetAlpha();
@ -972,6 +972,8 @@ bool wxImage::ConvertAlphaToMask(unsigned threshold)
free(M_IMGDATA->m_alpha);
M_IMGDATA->m_alpha = NULL;
return true;
}
#if wxUSE_PALETTE