gdi32: Fix sub-pixel shift calculations for vertical writing.

This commit is contained in:
Akihiro Sagawa 2014-01-10 20:29:54 +09:00 committed by Alexandre Julliard
parent d33602564b
commit e9188970a7
1 changed files with 2 additions and 2 deletions

View File

@ -6790,7 +6790,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
vmul = 3;
}
x_shift = ft_face->glyph->bitmap_left - gm.gmptGlyphOrigin.x;
x_shift = ft_face->glyph->bitmap_left - (left >> 6);
if ( x_shift < 0 )
{
src += hmul * -x_shift;
@ -6802,7 +6802,7 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
width -= x_shift;
}
y_shift = gm.gmptGlyphOrigin.y - ft_face->glyph->bitmap_top;
y_shift = (top >> 6) - ft_face->glyph->bitmap_top;
if ( y_shift < 0 )
{
src += src_pitch * vmul * -y_shift;