Mercurial > emacs
changeset 31340:6b2ed557e09c
(x_alloc_lighter_color_for_widget): New function.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 03 Sep 2000 11:33:29 +0000 |
parents | 0edf56745df4 |
children | 1c5d68acbded |
files | src/xterm.c |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Sat Sep 02 21:56:47 2000 +0000 +++ b/src/xterm.c Sun Sep 03 11:33:29 2000 +0000 @@ -3252,6 +3252,27 @@ } +/* Allocate a color which is lighter or darker than *PIXEL by FACTOR + or DELTA. Try a color with RGB values multiplied by FACTOR first. + If this produces the same color as PIXEL, try a color where all RGB + values have DELTA added. Return the allocated color in *PIXEL. + DISPLAY is the X display, CMAP is the colormap to operate on. + Value is non-zero if successful. */ + +int +x_alloc_lighter_color_for_widget (widget, display, cmap, pixel, factor, delta) + Widget widget; + Display *display; + Colormap cmap; + unsigned long *pixel; + double factor; + int delta; +{ + struct frame *f = x_frame_of_widget (widget); + return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta); +} + + #endif /* USE_X_TOOLKIT */