]> git.saurik.com Git - wxWidgets.git/commitdiff
correct the coordinates used for DIBs in StretchBlt() (closes #10501)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Feb 2009 23:54:05 +0000 (23:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Feb 2009 23:54:05 +0000 (23:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index a58c7fc4c5da52541c8a43b9a3e813903ef05883..8b84775f38a81b0c354014e1212f5ff9e5d6e3ef 100644 (file)
@@ -2289,7 +2289,7 @@ bool wxMSWDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
                 if ( hDIB > 0 )
                 {
                     // reflect ysrc
-                    ysrc = hDIB - (ysrc + dstHeight);
+                    ysrc = hDIB - (ysrc + srcHeight);
                 }
 
                 if ( ::StretchDIBits(GetHdc(),