aboutsummaryrefslogtreecommitdiff
path: root/generic/Field.c
diff options
context:
space:
mode:
authorlecoanet2003-06-16 14:44:53 +0000
committerlecoanet2003-06-16 14:44:53 +0000
commit7296d27a04068d84d9e683b0b5dccfc4059f97a9 (patch)
tree2c0d83161c2f222fec79c4a9762243b2936aea89 /generic/Field.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/Field.c')
-rw-r--r--generic/Field.c10
1 files changed, 5 insertions, 5 deletions
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;