blit using icon mask
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,10 +214,11 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, const wxRect& rc, wxODAction act, wxODSt
|
|||||||
// there should be enough place!
|
// there should be enough place!
|
||||||
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
|
wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
|
||||||
|
|
||||||
|
//MT: blit with mask enabled.
|
||||||
dc.Blit(rc.x + (GetMarginWidth() - nBmpWidth) / 2,
|
dc.Blit(rc.x + (GetMarginWidth() - nBmpWidth) / 2,
|
||||||
rc.y + (m_nHeight - nBmpHeight) /2,
|
rc.y + (m_nHeight - nBmpHeight) /2,
|
||||||
nBmpWidth, nBmpHeight,
|
nBmpWidth, nBmpHeight,
|
||||||
&dcMem, 0, 0, wxCOPY);
|
&dcMem, 0, 0, wxCOPY,true);
|
||||||
|
|
||||||
if ( st & wxODSelected ) {
|
if ( st & wxODSelected ) {
|
||||||
#ifdef O_DRAW_NATIVE_API
|
#ifdef O_DRAW_NATIVE_API
|
||||||
|
Reference in New Issue
Block a user