Vincent Povirk : gdiplus: Don't use -escapement angle in GdipDrawString.
Alexandre Julliard
julliard at winehq.org
Mon Aug 3 11:13:17 CDT 2009
Module: wine
Branch: master
Commit: b330ebfe8e895cd3a0b974feb81b2662dba122d3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b330ebfe8e895cd3a0b974feb81b2662dba122d3
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Fri Jul 24 13:56:22 2009 -0500
gdiplus: Don't use -escapement angle in GdipDrawString.
---
dlls/gdiplus/graphics.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 58ca2e6..dcff926 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -2328,10 +2328,10 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
pt[1].X = 1.0;
pt[1].Y = 0.0;
GdipTransformMatrixPoints(graphics->worldtrans, pt, 2);
- angle = gdiplus_atan2((pt[1].Y - pt[0].Y), (pt[1].X - pt[0].X));
+ angle = -gdiplus_atan2((pt[1].Y - pt[0].Y), (pt[1].X - pt[0].X));
ang_cos = cos(angle);
ang_sin = sin(angle);
- lfw.lfEscapement = lfw.lfOrientation = -roundr((angle / M_PI) * 1800.0);
+ lfw.lfEscapement = lfw.lfOrientation = roundr((angle / M_PI) * 1800.0);
gdifont = CreateFontIndirectW(&lfw);
DeleteObject(SelectObject(graphics->hdc, CreateFontIndirectW(&lfw)));
More information about the wine-cvs
mailing list