wineps: too much char_extra
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Mon Nov 10 11:37:06 CST 2003
Huw Davies <huw at codeweavers.com>
GetTextExtentPoint already adds char_extra so don't add it on again.
--
Huw Davies
huw at codeweavers.com
Index: dlls/wineps/text.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/text.c,v
retrieving revision 1.18
diff -u -r1.18 text.c
--- dlls/wineps/text.c 19 May 2003 23:20:11 -0000 1.18
+++ dlls/wineps/text.c 10 Nov 2003 17:35:21 -0000
@@ -146,15 +146,14 @@
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)
More information about the wine-patches
mailing list