gdi: Get correct horizontal spacing value in the presence of ETO_PDY flag.

This commit is contained in:
qingdoa daoo 2006-05-25 09:10:08 +08:00 committed by Alexandre Julliard
parent 35ba7fb524
commit f77a28ee91
1 changed files with 3 additions and 1 deletions

View File

@ -1847,7 +1847,9 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x, INT y, UINT flags,
deltas = HeapAlloc(GetProcessHeap(), 0, count * sizeof(INT));
for(i = 0; i < count; i++)
{
if(lpDx)
if(lpDx && (flags & ETO_PDY))
deltas[i] = lpDx[i*2] + char_extra;
else if(lpDx)
deltas[i] = lpDx[i] + char_extra;
else
{