From 5d7eebb6b2984419651b31ea88b2a863fb2b3cca Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 31 Oct 2006 14:44:37 +0000 Subject: [PATCH] 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 --- src/msw/ownerdrw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index e7fd6460cc..ffda6982b5 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -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(), -- 2.45.2