From: Václav Slavík Date: Sat, 10 Aug 2002 14:51:34 +0000 (+0000) Subject: SciTech MGL changed public interface again, let's accomodate... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c0f02dbcba224adfb17c2f65f72785a74caa9da8 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 --- diff --git a/src/mgl/bitmap.cpp b/src/mgl/bitmap.cpp index 8ab1f1f99e..34183dd8a6 100644 --- a/src/mgl/bitmap.cpp +++ b/src/mgl/bitmap.cpp @@ -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