Hi all. I have been using version 2.1.0 on Arm Linux on the Raspberry Pi without issues. I have now build a new 8GB Dev Pi and installed first 2.3.0 Trunk and now 2.2.0 RC2. In both versions, I have issues with some of the BGRA Controls. I did log an issue on the developer's Git page.
https://github.com/bgrabitmap/bgracontrols/issues/113I have done some investigation and it seems the issue is with the calculation inside the function call. The datatype the function arc is looking for is a single. Yet the code Height / 2 is a double. If I leave the code like this it seems that the receiving function gets 0 and then it draws the control at the wrong place. But if I change the code to use a variable declared as a single and then I do the calculation before the time using round to ignore the decimal point and use the variable in the call then the control works.
temp_height : single;
begin
temp_height := round(Height / 2);
FreeAndNil(FBitmap);
FBitmap := TBGRABitmap.Create(Width , Height);
FBitmap.Canvas2D.beginPath;
//FBitmap.Canvas2D.arc(Width / 2, (Height / 2) , Height / 2.5, 0, pi * 2, False);
FBitmap.Canvas2D.arc((Width / 2), temp_height , Height / 2.5, 0, pi * 2, False);
FBitmap.Canvas2D.fillStyle(Color);
FBitmap.Canvas2D.fill;
So as this code works fine in version 2.1.0 on Arm Linux on the Pi is there something that changed or is there some setting I need to set to make all the old code still work?