Hi All,
Installed Lazarus on an Intel 4690K running Linux Mint 22.2 Zara to same software specs as in original post.
Created simple project,
procedure TFormMain.BtnRedboxClick(Sender: TObject);
var
Bitmap : TBGRABitmap;
begin
Bitmap:=TBGRABitmap.Create(100,100,BGRA(255,0,0));
Bitmap.SaveToFile('redbox.png');
Bitmap.Free;
end;
This worked correctly, creating a red image.
Then built and ran code on my laptop that exhibited the problem. It created a red image.
Cut and pasted code in to application that had the problem. Created a red image.
Changes where I had swapped red and blue channels where now showing incorrect colors. Feeling very surreal.
Looked in /var/log/d[kg.log and found NVidia driver had been updated on the 16th.
2025-10-16 21:56:29 status unpacked nvidia-driver-580-open:amd64 580.95.05-0ubuntu0.24.04.2
2025-10-16 21:56:29 status half-configured nvidia-driver-580-open:amd64 580.95.05-0ubuntu0.24.04.2
2025-10-16 21:56:29 status installed nvidia-driver-580-open:amd64 580.95.05-0ubuntu0.24.04.2
But the machine had been rebooted since then so the install should have been completed.
I don't understand what's happened. But anyway BGRABitmap is working as expected. I've now got to revert my code changes.
Sorry for wasting everyone's time.