mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 09:38:12 +02:00
LazReport: lrCodeReport: Fix: procedure TextOutXY. Use scale values, from Julio Jiménez B., issue #31155
git-svn-id: trunk@53835 -
This commit is contained in:
parent
b7eac8eeca
commit
99bb8c5526
@ -630,14 +630,14 @@ begin
|
||||
taLeftJustify: Pos := X;
|
||||
taRightJustify:
|
||||
begin
|
||||
Pos := X - TextWidth(AText);
|
||||
Pos := X - TextWidth(AText) / XRatio;
|
||||
end;
|
||||
taCenter:
|
||||
begin
|
||||
Pos := X - (TextWidth(AText) / 2);
|
||||
Pos := X - (TextWidth(AText) / 2 / XRatio);
|
||||
end;
|
||||
end;
|
||||
DrawText(Pos, Y, TextWidth(AText), TextHeight, AText, Style);
|
||||
DrawText(Pos, Y, TextWidth(AText) / XRatio + 2, TextHeight / YRatio, AText, Style);
|
||||
Cursor.Left += TextWidth(AText) / XRatio;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user