Skip to content
Snippets Groups Projects
Commit 5722f67b authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard
Browse files

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

parent 9959aca8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment