From 3493de8c640134742ae1cafec998bd899ed6e052 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 7 May 2001 18:13:28 +0000 Subject: [PATCH] For underlining and striking out text we need to send a 'newpath' or have the whole page filled with black. --- dlls/wineps/text.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wineps/text.c b/dlls/wineps/text.c index 596360c78cd..a812bdb1a33 100644 --- a/dlls/wineps/text.c +++ b/dlls/wineps/text.c @@ -203,6 +203,7 @@ static BOOL PSDRV_Text(DC *dc, INT x, INT y, LPCWSTR str, UINT count, /* 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 @@ static BOOL PSDRV_Text(DC *dc, INT x, INT y, LPCWSTR str, UINT count, 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 */ -- 2.11.4.GIT