wineps: too much char_extra

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



        Huw Davies <huw@xxxxxxxxxxxxxxx>
     	GetTextExtentPoint already adds char_extra so don't add it on again.   
-- 
Huw Davies
huw@xxxxxxxxxxxxxxx
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)


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux