diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-08-17 18:23:11 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-08-19 09:27:06 +0300 |
commit | b3c8095de5cf8c8030e3bac0532363def3070c3e (patch) | |
tree | b173edaefb1b3fc740a53f165677f40690f4474f /vcl/win | |
parent | d4ade4aeb60617b620faf21f08605b6feb069cce (diff) |
Add FIXME comment and bin an #if 0 snippet
Change-Id: I0bbea4ef62c8e94d8b8f1bfb440712da5839e532
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 6f8b4ca119a5..e32b8b57dc00 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -1579,6 +1579,8 @@ bool UniscribeLayout::DrawCachedGlyphs(SalGraphics& rGraphics) const pImpl->PreDraw(); + // FIXME: This code snippet is mostly copied from the one in + // UniscribeLayout::DrawTextImpl. Should be factored out. int nBaseClusterOffset = 0; int nBaseGlyphPos = -1; for( int nItem = 0; nItem < mnItemCount; ++nItem ) @@ -1626,16 +1628,6 @@ bool UniscribeLayout::DrawCachedGlyphs(SalGraphics& rGraphics) const pImpl->DrawMask(*rChunk.mpTexture, salColor, a2Rects); nAdvance += mpGlyphAdvances[i]; } -#if 0 - ScriptTextOut(hDC, &rScriptCache, - aPos.X(), aPos.Y(), 0, NULL, - &rVisualItem.mpScriptItem->a, NULL, 0, - mpOutGlyphs + nMinGlyphPos, - nEndGlyphPos - nMinGlyphPos, - mpGlyphAdvances + nMinGlyphPos, - mpJustifications ? mpJustifications + nMinGlyphPos : NULL, - mpGlyphOffsets + nMinGlyphPos); -#endif } pImpl->PostDraw(); |