]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/bitmap.cpp
Create an NSView (in leiu of a real static bitmap class)
[wxWidgets.git] / src / mgl / bitmap.cpp
index 8ab1f1f99eacfd339de457f9c599f1c4f151d48a..34183dd8a63390e8562f437d2b0caf4d1d9a421c 100644 (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