[04/12] gdi32: Don't forget to update the glyph advance in the case of a custom transformation

Dmitry Timoshkov dmitry at codeweavers.com
Tue Jun 24 02:11:05 CDT 2008


Hello,

Changelog:
    gdi32: Don't forget to update the glyph advance in the case of a custom transformation.
---
 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 1fc385d..bccb063 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -4440,7 +4440,7 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
 	vec.x = ft_face->glyph->metrics.horiAdvance;
 	vec.y = 0;
 	pFT_Vector_Transform(&vec, &transMat);
-	lpgm->gmCellIncX = (vec.x+63) >> 6;
+	adv = lpgm->gmCellIncX = (vec.x+63) >> 6;
 	lpgm->gmCellIncY = -((vec.y+63) >> 6);
     }
     lpgm->gmBlackBoxX = (right - left) >> 6;
-- 
1.5.5.4






More information about the wine-patches mailing list