From 7296d27a04068d84d9e683b0b5dccfc4059f97a9 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 16 Jun 2003 14:44:53 +0000 Subject: Use of ZnGetGradientPixel in X. --- generic/Text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'generic/Text.c') 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; -- cgit v1.1