[Libreoffice-commits] core.git: vcl/win
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 6 16:59:11 UTC 2019
vcl/win/gdi/DWriteTextRenderer.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit e9813126b7648b735d2231a703190ee48b8bbe42
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Mon May 6 16:44:56 2019 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Mon May 6 18:57:51 2019 +0200
Related: tdf#114209 vcl DirectWrite rotation: don't truncate to int degrees
Pointed out in the post-commit review of
<https://gerrit.libreoffice.org/71592>, thanks Mike.
Change-Id: I49006e041a5110e995af44b7437ba0b48c4c860d
Reviewed-on: https://gerrit.libreoffice.org/71868
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
Tested-by: Jenkins
diff --git a/vcl/win/gdi/DWriteTextRenderer.cxx b/vcl/win/gdi/DWriteTextRenderer.cxx
index 98daff12c4a4..93f877d2aea9 100644
--- a/vcl/win/gdi/DWriteTextRenderer.cxx
+++ b/vcl/win/gdi/DWriteTextRenderer.cxx
@@ -401,8 +401,9 @@ WinFontTransformGuard::WinFontTransformGuard(ID2D1RenderTarget* pRenderTarget, f
{
// DWrite angle is in clockwise degrees, our orientation is in counter-clockwise 10th
// degrees.
- aTransform
- = aTransform * D2D1::Matrix3x2F::Rotation(-rLayout.GetOrientation() / 10, rBaseline);
+ aTransform = aTransform
+ * D2D1::Matrix3x2F::Rotation(
+ -static_cast<FLOAT>(rLayout.GetOrientation()) / 10, rBaseline);
}
mpRenderTarget->SetTransform(aTransform);
}
More information about the Libreoffice-commits
mailing list