PATCH: underlined/stricken printed text

Marcus Meissner marcus at jet.franken.de
Sat May 5 11:52:24 CDT 2001


Hi,

Underlined text in winword caused the whole page to be black.
I figured it is a missing newpath and added it to underlined 
and struckout mode.

Works better now.

There seem to be more problems in regards to matched newpath/closepath.
Will debug those further if possible :/

Ciao, Marcus

Changelog:
	For underlining and striking out text we need to send a 'newpath'
	or have the whole page filled with black.

Index: text.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/text.c,v
retrieving revision 1.7
diff -u -r1.7 text.c
--- text.c	2001/04/16 18:55:48	1.7
+++ text.c	2001/05/05 17:51:41
@@ -203,6 +203,7 @@
         /* Do the underline */
 
         if (physDev->font.tm.tmUnderlined) {
+            PSDRV_WriteNewPath(dc); /* will be closed by WriteRectangle */
             if (escapement != 0)  /* rotated text */
             {
                 PSDRV_WriteGSave(dc);  /* save the graphics state */
@@ -227,7 +228,7 @@
 
         if (physDev->font.tm.tmStruckOut) {
             pos = -physDev->font.tm.tmAscent / 2;
-
+            PSDRV_WriteNewPath(dc); /* will be closed by WriteRectangle */
             if (escapement != 0)  /* rotated text */
             {
                 PSDRV_WriteGSave(dc);  /* save the graphics state */




More information about the wine-patches mailing list