mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 00:02:03 +02:00
Gtk3: fixed drawing pixmap with mask.issue #41383
This commit is contained in:
parent
0e0cb63d6e
commit
37dd466b00
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user