Corrected DoBlit code to use offset into mask
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8658ef93e3
commit
83a4ad53fa
@ -1115,6 +1115,7 @@ void wxDC::SetBackgroundMode(int mode)
|
||||
::SetBkMode(GetHdc(), TRANSPARENT);
|
||||
else
|
||||
::SetBkMode(GetHdc(), OPAQUE);
|
||||
Last change: AC 29 Jan 101 8:54 pm
|
||||
*/
|
||||
}
|
||||
|
||||
@ -1440,7 +1441,7 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
|
||||
// of the mask which is also contrary to the Windows one)
|
||||
success = ::MaskBlt(GetHdc(), xdest, ydest, width, height,
|
||||
GetHdcOf(*source), xsrc, ysrc,
|
||||
(HBITMAP)mask->GetMaskBitmap(), 0, 0,
|
||||
(HBITMAP)mask->GetMaskBitmap(), xsrc, ysrc,
|
||||
MAKEROP4(dwRop, DSTCOPY)) != 0;
|
||||
|
||||
if ( !success )
|
||||
|
Loading…
Reference in New Issue
Block a user