mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 14:08:15 +01:00
fix stretchblt not called because of maskblt failure
git-svn-id: trunk@5722 -
This commit is contained in:
parent
7e37785f81
commit
b6b484d93d
@ -2921,9 +2921,12 @@ End;
|
|||||||
the destination device context.
|
the destination device context.
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
Function TWin32WidgetSet.StretchMaskBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; Mask: HBITMAP; XMask, YMask: Integer; Rop: DWORD): Boolean;
|
Function TWin32WidgetSet.StretchMaskBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; Mask: HBITMAP; XMask, YMask: Integer; Rop: DWORD): Boolean;
|
||||||
|
var MaskBltResult: boolean;
|
||||||
|
StretchBltResult: boolean;
|
||||||
Begin
|
Begin
|
||||||
Result := MaskBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, Mask, XMask, YMask, Rop) And
|
MaskBltResult := MaskBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, Mask, XMask, YMask, Rop);
|
||||||
StretchBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, SrcWidth, SrcHeight, Rop);
|
StretchBltResult := StretchBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, SrcWidth, SrcHeight, Rop);
|
||||||
|
Result := MaskBltResult and StretchBltResult;
|
||||||
|
|
||||||
//Result := False; //Windows.StretchMaskBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, SrcWidth, SrcHeight, Mask, XMask, YMask, Rop);
|
//Result := False; //Windows.StretchMaskBlt(DestDC, X, Y, Width, Height, SrcDC, XSrc, YSrc, SrcWidth, SrcHeight, Mask, XMask, YMask, Rop);
|
||||||
End;
|
End;
|
||||||
@ -3013,6 +3016,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.126 2004/08/01 14:31:46 micha
|
||||||
|
fix stretchblt not called because of maskblt failure
|
||||||
|
|
||||||
Revision 1.125 2004/07/12 13:04:15 micha
|
Revision 1.125 2004/07/12 13:04:15 micha
|
||||||
cleanup: move default handling to DefaultHandler
|
cleanup: move default handling to DefaultHandler
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user