gdi32: Fix the glyph rotation transformation matrix.

Dmitry Timoshkov dmitry at codeweavers.com
Thu Feb 24 04:19:40 CST 2011


This follows the definition of the rotation matrix as
{ cos(x),sin(x),-sin(x),cos(x) }, and fixes text rotation in GDI mode
for the test application attached to the bug #22996.
---
 dlls/gdi32/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 506c994..6ae97b5 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -4664,7 +4664,7 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
         angle = FT_FixedFromFloat((double)font->orientation / 10.0);
         pFT_Vector_Unit(&vecAngle, angle);
         rotationMat.xx = vecAngle.x;
-        rotationMat.xy = -vecAngle.y;
+        rotationMat.xy = vecAngle.y;
         rotationMat.yx = -rotationMat.xy;
         rotationMat.yy = rotationMat.xx;
         
-- 
1.7.3.5




More information about the wine-patches mailing list