diff options
Diffstat (limited to 'generic/Text.c')
-rw-r--r-- | generic/Text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/Text.c b/generic/Text.c index 8f1e138..e2b83f2 100644 --- a/generic/Text.c +++ b/generic/Text.c @@ -749,7 +749,7 @@ Draw(ZnItem item) if ((ti->sel_item == item) && (sel_first_line >= 0)) { int x, y; - values.foreground = ZnPixel(ZnGetGradientColor(ti->sel_color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(ti->sel_color, 0.0); values.fill_style = FillSolid; XChangeGC(wi->dpy, wi->gc, GCFillStyle | GCForeground, &values); @@ -791,7 +791,7 @@ Draw(ZnItem item) values.fill_style = FillSolid; values.line_width = ti->insert_width; - values.foreground = ZnPixel(ZnGetGradientColor(ti->insert_color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(ti->insert_color, 0.0); XChangeGC(wi->dpy, wi->gc, GCForeground|GCFillStyle|GCLineWidth, &values); xs = (int)(text->pos_dev.x + lines[cursor_line].text_origin.x + cursor_offset); @@ -803,7 +803,7 @@ Draw(ZnItem item) * Setup the gc to render the text and draw it. */ values.font = Tk_FontId(text->font); - values.foreground = ZnPixel(ZnGetGradientColor(text->color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(text->color, 0.0); gc_mask = GCFont | GCForeground; if (text->fill_pattern != ZnUnspecifiedImage) { values.fill_style = FillStippled; |