Vincent Povirk : gdiplus: Fix vertical string alignment.

Alexandre Julliard julliard at winehq.org
Tue Aug 2 14:18:29 CDT 2011


Module: wine
Branch: master
Commit: 380abdeb10119a3ae2210544da99a33cc54798bc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=380abdeb10119a3ae2210544da99a33cc54798bc

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Tue Aug  2 11:19:16 2011 -0500

gdiplus: Fix vertical string alignment.

---

 dlls/gdiplus/graphics.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 8ad0c1d..7fcff02 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -4643,7 +4643,8 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
     GpPointF pt[3], rectcpy[4];
     POINT corners[4];
     REAL rel_width, rel_height;
-    INT offsety = 0, save_state;
+    INT save_state;
+    REAL offsety = 0.0;
     struct draw_string_args args;
     RectF scaled_rect;
     HDC hdc, temp_hdc=NULL;
@@ -4719,7 +4720,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string
     args.brush = brush;
 
     args.x = rect->X;
-    args.y = rect->Y;
+    args.y = rect->Y + offsety;
 
     args.rel_width = rel_width;
     args.rel_height = rel_height;




More information about the wine-cvs mailing list