// Name: bitmap.cpp
// Author: Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "bitmap.h"
#endif
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