m_width = 0;
m_height = 0;
m_bpp = 0;
- m_palette = (wxPalette *) NULL;
+ m_palette = NULL;
}
wxBitmapRefData::wxBitmapRefData(const wxBitmapRefData& data)
// Create mask if necessary
const bool hasMask = image.HasMask();
- XImage *mask_image = (XImage*) NULL;
+ XImage *mask_image = NULL;
if ( hasMask )
{
mask_image = XCreateImage( xdisplay, xvisual, 1, ZPixmap, 0, 0, width, height, 32, 0 );
wxMask *wxBitmap::GetMask() const
{
- wxCHECK_MSG( Ok(), (wxMask *) NULL, wxT("invalid bitmap") );
+ wxCHECK_MSG( Ok(), NULL, wxT("invalid bitmap") );
return M_BMPDATA->m_mask;
}
wxPalette *wxBitmap::GetPalette() const
{
- if (!Ok()) return (wxPalette *) NULL;
+ if (!Ok()) return NULL;
return M_BMPDATA->m_palette;
}
WXDisplay *wxBitmap::GetDisplay() const
{
- wxCHECK_MSG( Ok(), (WXDisplay*) NULL, wxT("invalid bitmap") );
+ wxCHECK_MSG( Ok(), NULL, wxT("invalid bitmap") );
return M_BMPDATA->m_display;
}
#elif wxUSE_STREAMS
wxXPMDecoder decoder;
wxFileInputStream stream(name);
- if (stream.Ok())
+ if (stream.IsOk())
{
wxImage image(decoder.ReadFile(stream));
- return image.Ok() && bitmap->CreateFromImage(image);
+ return image.IsOk() && bitmap->CreateFromImage(image);
}
return false;
int xscreen = DefaultScreen( xdisplay );
Window xroot = RootWindow( xdisplay, xscreen );
- M_BMPHANDLERDATA->m_mask = (wxMask *) NULL;
+ M_BMPHANDLERDATA->m_mask = NULL;
M_BMPHANDLERDATA->m_bitmap =
XCreateBitmapFromData(xdisplay, xroot,
(char *) bits, width, height );