SciTech MGL changed public interface again, let's accomodate...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2002-08-10 14:51:34 +00:00
parent 3b5a798153
commit c0f02dbcba

View File

@ -845,8 +845,8 @@ bool wxPNGBitmapHandler::LoadFile(wxBitmap *bitmap, const wxString& name,
s = ((wxUint32*)bmp->surface) + y * bmp->bytesPerLine/4;
for (x = 0; x < bmp->width; x++, s ++)
{
if ( ((((*s) >> bmp->pf->rsvdPos) & bmp->pf->rsvdMask)
<< bmp->pf->rsvdAdjust) < 128 )
if ( ((((*s) >> bmp->pf->alphaPos) & bmp->pf->alphaMask)
<< bmp->pf->alphaAdjust) < 128 )
*s = 0;
else
*s = 0x00FFFFFF; // white