]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ownerdrw.cpp
add wxTE_AUTO_SCROLL
[wxWidgets.git] / src / msw / ownerdrw.cpp
index d60bc8c408344dfcdf12d5f4957802dacbd2482c..82fbbc84087ccbd797ba81e67df04416474ba87e 100644 (file)
@@ -214,10 +214,11 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, const wxRect& rc, wxODAction act, wxODSt
       // there should be enough place!
       wxASSERT((nBmpWidth <= rc.GetWidth()) && (nBmpHeight <= rc.GetHeight()));
 
+      //MT: blit with mask enabled.
       dc.Blit(rc.x + (GetMarginWidth() - nBmpWidth) / 2, 
               rc.y + (m_nHeight - nBmpHeight) /2, 
               nBmpWidth, nBmpHeight, 
-              &dcMem, 0, 0, wxCOPY);
+              &dcMem, 0, 0, wxCOPY,true);
 
       if ( st & wxODSelected ) {
         #ifdef  O_DRAW_NATIVE_API