|
@@ -167,7 +167,7 @@ begin
|
|
|
AddP(aRect.Box.TopLeft,True);
|
|
|
AddP(aRect.Box.BottomRight,True);
|
|
|
For Corner in TFresnelCSSCorner do
|
|
|
- AddP(aRect.Radius[Corner]);
|
|
|
+ AddP(aRect.Radii[Corner]);
|
|
|
if __fresnel_canvas_roundrect(Canvas,Flags,@RR)<>ECANVAS_SUCCESS then
|
|
|
FLLog(etError,'failed to draw round rectangle on canvas %d',[Canvas]);
|
|
|
end;
|
|
@@ -302,6 +302,7 @@ begin
|
|
|
end else if Params.BackgroundColorFP.Alpha>alphaTransparent then
|
|
|
begin
|
|
|
//FLLog(etDebug,'TFresnelRenderer.DrawElBorder drawing background %s',[El.GetPath]);
|
|
|
+ __fresnel_canvas_set_linewidth(Canvas,FresnelToWasmLength(Params.Width[ffsLeft],True));
|
|
|
if Params.HasRadius then
|
|
|
RoundRect(Params.BackgroundColorFP,Params.BoundingBox,True)
|
|
|
else
|
|
@@ -328,12 +329,12 @@ begin
|
|
|
With Params do
|
|
|
begin
|
|
|
HalfWidth:=Width[ffsLeft]/2;
|
|
|
- BB.Box.TopLeft.OffSet(-HalfWidth,-HalfWidth);
|
|
|
- BB.Box.BottomRight.OffSet(HalfWidth,HalfWidth);
|
|
|
+ BB.Box.TopLeft.OffSet(+HalfWidth,+HalfWidth);
|
|
|
+ BB.Box.BottomRight.OffSet(-HalfWidth,-HalfWidth);
|
|
|
For C in TFresnelCSSCorner do
|
|
|
begin
|
|
|
- BB.Radius[C].X:=BB.Radius[C].X+HalfWidth;
|
|
|
- BB.Radius[C].Y:=BB.Radius[C].Y+HalfWidth;
|
|
|
+ BB.Radii[C].X:=BB.Radii[C].X-HalfWidth;
|
|
|
+ BB.Radii[C].Y:=BB.Radii[C].Y-HalfWidth;
|
|
|
end
|
|
|
end;
|
|
|
RoundRect(Params.Color[Low(TFresnelCSSSide)],BB,False);
|