3 source/textDisp.c | 4 ++++
4 1 files changed, 4 insertions(+)
6 diff --quilt old/source/textDisp.c new/source/textDisp.c
7 --- old/source/textDisp.c
8 +++ new/source/textDisp.c
9 @@ -2315,18 +2315,22 @@ static void drawString(textDisp *textD,
10 y + textD->ascent, string, nChars);
12 /* Underline if style is secondary selection */
13 if (style & SECONDARY_MASK)
15 + gcValues.foreground = textD->fgPixel;
16 + XChangeGC(XtDisplay(textD->w), gc, GCForeground, &gcValues);
18 XDrawLine(XtDisplay(textD->w), XtWindow(textD->w), gc, x,
19 y + textD->ascent, toX - 1, y + textD->ascent);
21 /* Underline if style is underlined */
24 int bottom = textD->ascent + textD->descent - 1;
25 + gcValues.foreground = fground;
26 + XChangeGC(XtDisplay(textD->w), gc, GCForeground, &gcValues);
27 /* draw underline - use textD->gc for the non-highlighted text color */
28 XDrawLine(XtDisplay(textD->w), XtWindow(textD->w), gc, x,
29 y + bottom, toX - 1, y + bottom);