PowerPDF: corrects default radius for roundrect shape plus lcl roundrect function uses diameter not radius as it seems by the RX parameters
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2175 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
2c99a0ce7a
commit
6577163d6c
@ -2130,10 +2130,7 @@ begin
|
|||||||
Result := ClientWidth;
|
Result := ClientWidth;
|
||||||
|
|
||||||
if FRadius<0.0 then
|
if FRadius<0.0 then
|
||||||
Result := Result/4
|
Result := Result/8 // min(w,h)/4 is default diamter
|
||||||
else
|
|
||||||
if FRadius>Result/2 then
|
|
||||||
Result := Result/2
|
|
||||||
else
|
else
|
||||||
Result := FRadius;
|
Result := FRadius;
|
||||||
end;
|
end;
|
||||||
@ -2185,7 +2182,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
if ARadius<>0 then
|
if ARadius<>0 then
|
||||||
RoundRect(Left,Top,Right,Bottom,ARadius,ARadius);
|
RoundRect(Left,Top,Right,Bottom,ARadius*2,ARadius*2);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user