From: Julian Smart Date: Thu, 3 Apr 2003 13:19:15 +0000 (+0000) Subject: Applied patch [ 709618 ] fixes drawing position in wxPrinterDC::DoBlit() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e5c4c38b5d3523bfac08987b5ec09d34f4f61caa Applied patch [ 709618 ] fixes drawing position in wxPrinterDC::DoBlit() wxPrinterDC::DoBlit() in current CVS is drawing to the source coords rather than the dest coords. This patch corrects that. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index 27ea98fe59..c0e90e3d2c 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -436,7 +436,7 @@ bool wxPrinterDC::DoBlit(wxCoord xdest, wxCoord ydest, else // no mask { if ( !(::GetDeviceCaps(GetHdc(), RASTERCAPS) & RC_STRETCHDIB) || - !DrawBitmapUsingStretchDIBits(GetHdc(), bmp, xsrc, ysrc) ) + !DrawBitmapUsingStretchDIBits(GetHdc(), bmp, xdest, ydest) ) { // no support for StretchDIBits