Akihiro Sagawa : gdi32: Fix regression due to sub-pixel shift calculations fixes.

Alexandre Julliard julliard at winehq.org
Mon Jan 27 13:32:52 CST 2014


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

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Fri Jan 24 01:47:54 2014 +0900

gdi32: Fix regression due to sub-pixel shift calculations fixes.

---

 dlls/gdi32/freetype.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 722a211..5f4a570 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -6744,11 +6744,13 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
                 {
                     gm.gmBlackBoxX += 2;
                     gm.gmptGlyphOrigin.x -= 1;
+                    left -= (1 << 6);
                 }
                 else
                 {
                     gm.gmBlackBoxY += 2;
                     gm.gmptGlyphOrigin.y += 1;
+                    top += (1 << 6);
                 }
             }
 




More information about the wine-cvs mailing list