diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 15:59:34 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-09 15:59:34 +0200 |
commit | f3b66f126c175edbb56675b39417d06ae8bd07f0 (patch) | |
tree | f7f67d17d373baf3beb5fd05fc6a78de2eaa3581 /components | |
parent | 79bbdf5ee16b72e01f683ecc25ba3f0e069a21a1 (diff) | |
download | fpGUI-f3b66f126c175edbb56675b39417d06ae8bd07f0.tar.xz |
Finally fixed double painting problem.
* Stupid me, never saw the double painting line. Now it
is fixed.
* Also removed the PhysX variable, because we don't
actually use the FontWidthPrecisionFactor, because
it is a OS/2 specific font thing.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'components')
-rwxr-xr-x | components/richtext/RichTextDisplayUnit.pas | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/components/richtext/RichTextDisplayUnit.pas b/components/richtext/RichTextDisplayUnit.pas index 2ef91792..e2c2e707 100755 --- a/components/richtext/RichTextDisplayUnit.pas +++ b/components/richtext/RichTextDisplayUnit.pas @@ -131,22 +131,16 @@ var NewMarginX: longint; procedure DrawTextBlock; - var - PhysX: longint; begin -writeln('**** DrawTextBlock *****'); - PhysX := X div FontWidthPrecisionFactor; - FontManager.Canvas.DrawText(PhysX, Y, StringToDraw); -writeln(' PhysX=', PhysX, ' Y=', Y, ' String=', StringToDraw); +writeln(' **** DrawTextBlock *****'); DrawRichTextString( FontManager, - PhysX, - Y, + X, // value gets adjusted by the time it returns + Y, // value gets adjusted by the time it returns PChar(StringToDraw), Length(StringToDraw), Selected, Style.Color, Style.BackgroundColor ); - X := PhysX * FontWidthPrecisionFactor; StringToDraw := ''; end; |