mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 17:18:25 +02:00
LCL-GTK3: Fix swapped R/B colors. Issue #36374, patch from Anton Kavalenka.
git-svn-id: trunk@62377 -
This commit is contained in:
parent
72211dbe07
commit
37ca5b4d49
@ -4073,8 +4073,13 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
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);
|
||||||
DestContext.drawImage1(@ATargetRect, PgdkPixbuf(SrcContext.CurrentImage.Handle) , @ASrcRect, nil, nil);
|
|
||||||
// Result := True;
|
if (DestContext.OwnsSurface) then
|
||||||
|
DestContext.drawImage1(@ATargetRect, PgdkPixbuf(SrcContext.CurrentImage.Handle) , @ASrcRect, nil, nil)
|
||||||
|
else
|
||||||
|
DestContext.drawSurface(@ATargetRect,SrcContext.CairoSurface , @ASrcRect, nil, nil);
|
||||||
|
|
||||||
|
Result := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TGtk3WidgetSet.SystemParametersInfo(uiAction: DWord; uiParam: DWord;
|
function TGtk3WidgetSet.SystemParametersInfo(uiAction: DWord; uiParam: DWord;
|
||||||
|
Loading…
Reference in New Issue
Block a user