Kaydet (Commit) e9813126 authored tarafından Miklos Vajna's avatar Miklos Vajna

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/71868Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst 67d95af7
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment