For underlining and striking out text we need to send a 'newpath' or

have the whole page filled with black.
This commit is contained in:
Marcus Meissner 2001-05-07 18:13:28 +00:00 committed by Alexandre Julliard
parent b1118096bb
commit 3493de8c64
1 changed files with 2 additions and 1 deletions

View File

@ -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 */