summaryrefslogtreecommitdiff
path: root/vcl/coretext
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-06-19 15:25:26 +0300
committerTor Lillqvist <tml@iki.fi>2013-06-19 15:25:26 +0300
commit47dca10811a31cf28e72b9bc034b9d8975327df3 (patch)
treef8a84e0a7a1c17dfff02fdf2a8d99ac7675b4a60 /vcl/coretext
parentb9c46f46cebc0ebed5a91f8fbb9d0a01366f1f77 (diff)
Add comment
Change-Id: Id3ec71e8da07a8bf1c979585eb84cd5a9d6f7a77
Diffstat (limited to 'vcl/coretext')
-rw-r--r--vcl/coretext/ctlayout.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/coretext/ctlayout.cxx b/vcl/coretext/ctlayout.cxx
index 1e89a39e4ac6..721d7708afab 100644
--- a/vcl/coretext/ctlayout.cxx
+++ b/vcl/coretext/ctlayout.cxx
@@ -426,6 +426,11 @@ void CTLayout::GetCaretPositions( int nMaxIndex, sal_Int32* pCaretXArray ) const
bool CTLayout::GetBoundRect( SalGraphics& rGraphics, Rectangle& rVCLRect ) const
{
+ // Closely mimic DrawText(), except that instead of calling
+ // CTLineDraw() to draw the line, we call CTLineGetImageBounds()
+ // to get its bounds. But all the coordinate system manipulation
+ // before that is the same => should be factored out?
+
AquaSalGraphics& rAquaGraphics = static_cast<AquaSalGraphics&>(rGraphics);
#ifdef IOS