GetTextExtentPoint already adds char_extra so don't add it on again.

This commit is contained in:
Huw Davies 2003-11-11 00:28:51 +00:00 committed by Alexandre Julliard
parent 9959aca826
commit 5722f67bb6
1 changed files with 2 additions and 3 deletions

View File

@ -146,15 +146,14 @@ static BOOL PSDRV_Text(PSDRV_PDEVICE *physDev, INT x, INT y, UINT flags, LPCWSTR
deltas = HeapAlloc(GetProcessHeap(), 0, count * sizeof(INT));
for(i = 0; i < count; i++) {
deltas[i] = char_extra;
if(lpDx)
deltas[i] += lpDx[i];
deltas[i] = lpDx[i] + char_extra;
else {
if(physDev->font.fontloc == Download)
GetTextExtentPointI(physDev->hdc, glyphs + i, 1, &tmpsz);
else
GetTextExtentPoint32W(physDev->hdc, str + i, 1, &tmpsz);
deltas[i] += tmpsz.cx;
deltas[i] = tmpsz.cx;
}
}
} else if(lpDx)