]> git.saurik.com Git - wxWidgets.git/commitdiff
use SelectObjectAsSource when we don't need to modify the bitmap
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 14:44:37 +0000 (14:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Oct 2006 14:44:37 +0000 (14:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ownerdrw.cpp

index e7fd6460cc3d8e9d0b5670833a974c9b6e6597ec..ffda6982b54a2d1c1969daea225b976828ff3188 100644 (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(),