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/Field.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'generic/Field.c') diff --git a/generic/Field.c b/generic/Field.c index 472d895..2c69fd8 100644 --- a/generic/Field.c +++ b/generic/Field.c @@ -1793,7 +1793,7 @@ DrawField(ZnWInfo *wi, * Draw the background. */ if (ISSET(fptr->flags, FILLED_BIT)) { - values.foreground = ZnPixel(ZnGetGradientColor(fptr->fill_color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(fptr->fill_color, 0.0); if (fptr->tile != ZnUnspecifiedImage) { if (!ZnImageIsBitmap(fptr->tile)) { /* Fill tiled */ @@ -1880,7 +1880,7 @@ DrawField(ZnWInfo *wi, num_bytes = strlen(fptr->text); if (num_bytes) { if (sel_start >= 0) { - 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, GCForeground|GCFillStyle, &values); XFillRectangle(wi->dpy, wi->draw_buffer, wi->gc, @@ -1889,7 +1889,7 @@ DrawField(ZnWInfo *wi, (unsigned int) (sel_stop-sel_start), (unsigned int) (text_bbox->corner.y-text_bbox->orig.y)); } - values.foreground = ZnPixel(ZnGetGradientColor(fptr->color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(fptr->color, 0.0); values.fill_style = FillSolid; values.font = Tk_FontId(fptr->font); XChangeGC(wi->dpy, wi->gc, GCForeground | GCFillStyle | GCFont, &values); @@ -1900,7 +1900,7 @@ DrawField(ZnWInfo *wi, } if (cursor >= 0) { values.line_width = ti->insert_width; - values.foreground = ZnPixel(ZnGetGradientColor(ti->insert_color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(ti->insert_color, 0.0); values.fill_style = FillSolid; XChangeGC(wi->dpy, wi->gc, GCForeground|GCLineWidth|GCFillStyle, &values); xs = (int) text_bbox->orig.x + cursor; @@ -1921,7 +1921,7 @@ DrawField(ZnWInfo *wi, * Draw the border line. */ if (fptr->border_edges != ZN_NO_BORDER) { - values.foreground = ZnPixel(ZnGetGradientColor(fptr->border_color, 0.0, NULL)); + values.foreground = ZnGetGradientPixel(fptr->border_color, 0.0); values.line_width = 0; values.line_style = LineSolid; values.fill_style = FillSolid; -- cgit v1.1