respect xsrc, ysrc parameters in DoBlit() (patch 733961)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2065,10 +2065,19 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
|
||||
{
|
||||
StretchBltModeChanger changeMode(GetHdc(), COLORONCOLOR);
|
||||
|
||||
// Figure out what co-ordinate system we're supposed to specify
|
||||
// ysrc in.
|
||||
const LONG hDIB = ds.dsBmih.biHeight;
|
||||
if ( hDIB > 0 )
|
||||
{
|
||||
// reflect ysrc
|
||||
ysrc = hDIB - (ysrc + height);
|
||||
}
|
||||
|
||||
if ( ::StretchDIBits(GetHdc(),
|
||||
xdest, ydest,
|
||||
width, height,
|
||||
0, 0,
|
||||
xsrc, ysrc,
|
||||
width, height,
|
||||
ds.dsBm.bmBits,
|
||||
(LPBITMAPINFO)&ds.dsBmih,
|
||||
|
Reference in New Issue
Block a user