mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 18:19:08 +02:00
LCL-GTK3: Fix ImageList icon paiting. Issue #37600, patch from Anton Kavalenka.
git-svn-id: trunk@63848 -
This commit is contained in:
parent
55d0c7bc3a
commit
55553eded7
@ -3945,7 +3945,7 @@ begin
|
|||||||
ATargetRect := Rect(X, Y, Width + X, Height + Y);
|
ATargetRect := Rect(X, Y, Width + X, Height + Y);
|
||||||
ASrcRect := Rect(XSrc, YSrc, SrcWidth + XSrc, SrcHeight + YSrc);
|
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)
|
DestContext.drawImage1(@ATargetRect, PgdkPixbuf(SrcContext.CurrentImage.Handle) , @ASrcRect, nil, nil)
|
||||||
else
|
else
|
||||||
DestContext.drawSurface(@ATargetRect,SrcContext.CairoSurface , @ASrcRect, nil, nil);
|
DestContext.drawSurface(@ATargetRect,SrcContext.CairoSurface , @ASrcRect, nil, nil);
|
||||||
|
Loading…
Reference in New Issue
Block a user