diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-12 00:02:36 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-12 00:02:36 +0200 |
commit | 4be1bb4331ea4818431a2e1465fd35aa8c23fe1e (patch) | |
tree | 6275531cfc4192d6d39c8e87edb67c2cdfb582ca | |
parent | 0f8ae3503bcafc0fb450ee47d2a2f13c9ec1fe0f (diff) | |
download | fpGUI-4be1bb4331ea4818431a2e1465fd35aa8c23fe1e.tar.xz |
richview: fixed position of bitmap in context.
The positioning of images still used the OS/2 co-ordinate
system. This is now fixed.
-rw-r--r-- | docview/components/richtext/RichTextDisplayUnit.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docview/components/richtext/RichTextDisplayUnit.pas b/docview/components/richtext/RichTextDisplayUnit.pas index c3f15156..6009e7e2 100644 --- a/docview/components/richtext/RichTextDisplayUnit.pas +++ b/docview/components/richtext/RichTextDisplayUnit.pas @@ -224,11 +224,11 @@ ProfileEvent('DEBUG: DrawRichTextLine >>>'); Bitmap := Layout.Images.Item[BitmapIndex].Image; BitmapRect.Left := X div FontWidthPrecisionFactor; - BitmapRect.Bottom := Start.Y; + BitmapRect.Top := Start.Y; BitmapRect.Right := Trunc(BitmapRect.Left + Bitmap.Width * Layout.HorizontalImageScale); - BitmapRect.Top := Trunc(BitmapRect.Bottom + BitmapRect.Bottom := Trunc(BitmapRect.Top + Bitmap.Height * Layout.VerticalImageScale); |