// fully transparent or fully opaque
if (bmpSource.GetMask())
{
- wxBitmap bmpMask = bmpSource.GetMaskBitmap();
+ wxBitmap bmpMask = bmpSource.GetMask()->GetBitmap();
bufferFormat = CAIRO_FORMAT_ARGB32;
data = (wxUint32*)m_buffer;
wxNativePixelData
{
wxGraphicsPen p;
ENSURE_LOADED_OR_RETURN(p);
- if (pen.IsOk() && pen.GetStyle() == wxPENSTYLE_TRANSPARENT)
+ if (pen.IsOk() && pen.GetStyle() != wxPENSTYLE_TRANSPARENT)
{
p.SetRefData(new wxCairoPenData( this, pen ));
}
{
wxGraphicsBrush p;
ENSURE_LOADED_OR_RETURN(p);
- if (brush.IsOk() && brush.GetStyle() == wxBRUSHSTYLE_TRANSPARENT)
+ if (brush.IsOk() && brush.GetStyle() != wxBRUSHSTYLE_TRANSPARENT)
{
p.SetRefData(new wxCairoBrushData( this, brush ));
}