LCL-GTK3: Fix swapped R/B colors. Issue #36374, patch from Anton Kavalenka.

git-svn-id: trunk@62377 -
This commit is contained in:
juha 2019-12-11 11:33:31 +00:00
parent 72211dbe07
commit 37ca5b4d49

View File

@ -4073,8 +4073,13 @@ begin
{$ENDIF}
ATargetRect := Rect(X, Y, Width + X, Height + Y);
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;
function TGtk3WidgetSet.SystemParametersInfo(uiAction: DWord; uiParam: DWord;