Commit e9188970 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

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

parent d3360256
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment