aboutsummaryrefslogtreecommitdiff
path: root/generic/Text.c
diff options
context:
space:
mode:
authorlecoanet2003-06-16 14:44:53 +0000
committerlecoanet2003-06-16 14:44:53 +0000
commit7296d27a04068d84d9e683b0b5dccfc4059f97a9 (patch)
tree2c0d83161c2f222fec79c4a9762243b2936aea89 /generic/Text.c
parent75fcaa22f29f8c7b91247611fb45a1bdf667dbd6 (diff)
downloadtkzinc-7296d27a04068d84d9e683b0b5dccfc4059f97a9.zip
tkzinc-7296d27a04068d84d9e683b0b5dccfc4059f97a9.tar.gz
tkzinc-7296d27a04068d84d9e683b0b5dccfc4059f97a9.tar.bz2
tkzinc-7296d27a04068d84d9e683b0b5dccfc4059f97a9.tar.xz
Use of ZnGetGradientPixel in X.
Diffstat (limited to 'generic/Text.c')
-rw-r--r--generic/Text.c6
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;