From: Vadim Zeitlin Date: Sun, 22 Feb 2009 23:54:05 +0000 (+0000) Subject: correct the coordinates used for DIBs in StretchBlt() (closes #10501) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b87142167b4460ec4bf1d5bbed6c92218355868 correct the coordinates used for DIBs in StretchBlt() (closes #10501) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index a58c7fc4c5..8b84775f38 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -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(),