LCL-GTK3: Fix ImageList icon paiting. Issue , patch from Anton Kavalenka.

git-svn-id: trunk@63848 -
This commit is contained in:
juha 2020-08-30 20:47:02 +00:00
parent 55d0c7bc3a
commit 55553eded7

View File

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