Bring OSX API in sync with MSW
This commit is contained in:
@@ -177,7 +177,7 @@ public:
|
|||||||
// these functions are internal and shouldn't be used, they risk to
|
// these functions are internal and shouldn't be used, they risk to
|
||||||
// disappear in the future
|
// disappear in the future
|
||||||
bool HasAlpha() const;
|
bool HasAlpha() const;
|
||||||
void UseAlpha();
|
void UseAlpha(bool use = true);
|
||||||
|
|
||||||
// returns the 'native' implementation, a GWorldPtr for the content and one for the mask
|
// returns the 'native' implementation, a GWorldPtr for the content and one for the mask
|
||||||
WXHBITMAP GetHBITMAP( WXHBITMAP * mask = NULL ) const;
|
WXHBITMAP GetHBITMAP( WXHBITMAP * mask = NULL ) const;
|
||||||
|
@@ -1867,9 +1867,9 @@ void wxBitmap::UngetRawData(wxPixelDataBase& WXUNUSED(dataBase))
|
|||||||
EndRawAccess() ;
|
EndRawAccess() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxBitmap::UseAlpha()
|
void wxBitmap::UseAlpha(bool use )
|
||||||
{
|
{
|
||||||
// remember that we are using alpha channel:
|
// remember that we are using alpha channel:
|
||||||
// we'll need to create a proper mask in UngetRawData()
|
// we'll need to create a proper mask in UngetRawData()
|
||||||
M_BITMAPDATA->UseAlpha( true );
|
M_BITMAPDATA->UseAlpha( use );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user