]> git.saurik.com Git - wxWidgets.git/commitdiff
use COLORONCOLOR stretching mode in DrawBitmap() too (see #3400)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Apr 2009 14:58:11 +0000 (14:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 5 Apr 2009 14:58:11 +0000 (14:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index 55724274f74fce94ed8dd520e7bc582b2f41a39c..848d6b7258aa8a5f1c6feb23ddb365b596722f64 100644 (file)
@@ -1294,6 +1294,10 @@ void wxMSWDCImpl::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y, bool
             return;
     }
 
+#ifndef __WXWINCE__
+    StretchBltModeChanger changeMode(GetHdc(), COLORONCOLOR);
+#endif
+
     if ( useMask )
     {
         wxMask *mask = bmp.GetMask();