Gtk3: fixed StretchMaskBlt(). issue #41384

This commit is contained in:
zeljan1 2025-01-31 18:56:15 +01:00
parent 1d5796a663
commit 0bb0a0625a

View File

@ -4475,12 +4475,10 @@ begin
end;
ATargetRect := Rect(X, Y, Width + X, Height + Y);
ASrcRect := Rect(XSrc, YSrc, SrcWidth + XSrc, SrcHeight + YSrc);
if (DestContext.OwnsSurface) and (SrcContext.OwnsSurface) or (mask<>0) then
if (DestContext.OwnsSurface) and (SrcContext.OwnsSurface) and (mask<>0) then
DestContext.drawImage1(@ATargetRect, PgdkPixbuf(SrcContext.CurrentImage.Handle) , @ASrcRect, nil, nil)
else
DestContext.drawSurface(@ATargetRect,SrcContext.CairoSurface , @ASrcRect, nil, nil);
Result := True;
end;