use SelectObjectAsSource when we don't need to modify the bitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-31 14:44:37 +00:00
parent 1b7c01c976
commit 5d7eebb6b2

View File

@ -429,7 +429,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc,
if ( bmp.Ok() )
{
wxMemoryDC dcMem(&dc);
dcMem.SelectObject(bmp);
dcMem.SelectObjectAsSource(bmp);
// center bitmap
int nBmpWidth = bmp.GetWidth(),