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:
@@ -1115,6 +1115,7 @@ void wxDC::SetBackgroundMode(int mode)
|
|||||||
::SetBkMode(GetHdc(), TRANSPARENT);
|
::SetBkMode(GetHdc(), TRANSPARENT);
|
||||||
else
|
else
|
||||||
::SetBkMode(GetHdc(), OPAQUE);
|
::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)
|
// of the mask which is also contrary to the Windows one)
|
||||||
success = ::MaskBlt(GetHdc(), xdest, ydest, width, height,
|
success = ::MaskBlt(GetHdc(), xdest, ydest, width, height,
|
||||||
GetHdcOf(*source), xsrc, ysrc,
|
GetHdcOf(*source), xsrc, ysrc,
|
||||||
(HBITMAP)mask->GetMaskBitmap(), 0, 0,
|
(HBITMAP)mask->GetMaskBitmap(), xsrc, ysrc,
|
||||||
MAKEROP4(dwRop, DSTCOPY)) != 0;
|
MAKEROP4(dwRop, DSTCOPY)) != 0;
|
||||||
|
|
||||||
if ( !success )
|
if ( !success )
|
||||||
|
|||||||
Reference in New Issue
Block a user