1 Subject: change underline color to my tasting
5 source/textDisp.c | 4 ++++
6 1 file changed, 4 insertions(+)
8 diff --quilt old/source/textDisp.c new/source/textDisp.c
9 --- old/source/textDisp.c
10 +++ new/source/textDisp.c
11 @@ -2308,18 +2308,22 @@ static void drawString(textDisp *textD,
12 y + textD->ascent, string, nChars);
14 /* Underline if style is secondary selection */
15 if (style & SECONDARY_MASK)
17 + gcValues.foreground = textD->fgPixel;
18 + XChangeGC(XtDisplay(textD->w), gc, GCForeground, &gcValues);
20 XDrawLine(XtDisplay(textD->w), XtWindow(textD->w), gc, x,
21 y + textD->ascent, toX - 1, y + textD->ascent);
23 /* Underline if style is underlined */
26 int bottom = textD->ascent + textD->descent - 1;
27 + gcValues.foreground = fground;
28 + XChangeGC(XtDisplay(textD->w), gc, GCForeground, &gcValues);
29 /* draw underline - use textD->gc for the non-highlighted text color */
30 XDrawLine(XtDisplay(textD->w), XtWindow(textD->w), gc, x,
31 y + bottom, toX - 1, y + bottom);