Honour source wxDC coordinate system in wxDC::Blit() in wxMSW.
wxGTK and wxOSX already did this so do it in wxMSW as well. Update the documentation to make this explicit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2246,6 +2246,13 @@ bool wxMSWDCImpl::DoStretchBlit(wxCoord xdest, wxCoord ydest,
|
||||
return false;
|
||||
}
|
||||
|
||||
// We need to interpret source-related coordinates in source DC
|
||||
// coordinate system.
|
||||
xsrc = source->LogicalToDeviceX(xsrc);
|
||||
ysrc = source->LogicalToDeviceY(ysrc);
|
||||
srcWidth = source->LogicalToDeviceXRel(srcWidth);
|
||||
srcHeight = source->LogicalToDeviceYRel(srcHeight);
|
||||
|
||||
const HDC hdcSrc = GetHdcOf(*implSrc);
|
||||
|
||||
// if either the source or destination has alpha channel, we must use
|
||||
|
Reference in New Issue
Block a user