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:
parent
1b7c01c976
commit
5d7eebb6b2
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user