Use mask when drawing bitmaps in generic wxDataViewCtrl.
This allows to have bitmaps with transparent areas in them. Closes #15510. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1021,7 +1021,7 @@ bool wxDataViewBitmapRenderer::GetValue( wxVariant& WXUNUSED(value) ) const
|
||||
bool wxDataViewBitmapRenderer::Render( wxRect cell, wxDC *dc, int WXUNUSED(state) )
|
||||
{
|
||||
if (m_bitmap.IsOk())
|
||||
dc->DrawBitmap( m_bitmap, cell.x, cell.y );
|
||||
dc->DrawBitmap( m_bitmap, cell.x, cell.y, true /* use mask */ );
|
||||
else if (m_icon.IsOk())
|
||||
dc->DrawIcon( m_icon, cell.x, cell.y );
|
||||
|
||||
|
Reference in New Issue
Block a user