Gtk3: fixed drawing pixmap with mask.issue #41383

This commit is contained in:
zeljan1 2025-01-31 21:10:02 +01:00
parent 0e0cb63d6e
commit 37dd466b00

View File

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