comparison src/xterm.c @ 112026:b3df357e51ff

Restore x_alloc_lighter_color_for_widget, needed for lwlib * src/xterm.h (x_alloc_lighter_color_for_widget): Restore declaration. * src/xterm.c (x_alloc_lighter_color_for_widget): Restore.
author Andreas Schwab <schwab@linux-m68k.org>
date Tue, 28 Dec 2010 17:34:04 +0100
parents ac49e05bfcf2
children 40af77a50adc
comparison
equal deleted inserted replaced
112025:41f10e4816d0 112026:b3df357e51ff
1478 int 1478 int
1479 x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color) 1479 x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color)
1480 { 1480 {
1481 struct frame *f = x_frame_of_widget (widget); 1481 struct frame *f = x_frame_of_widget (widget);
1482 return x_alloc_nearest_color (f, cmap, color); 1482 return x_alloc_nearest_color (f, cmap, color);
1483 }
1484
1485
1486 /* Allocate a color which is lighter or darker than *PIXEL by FACTOR
1487 or DELTA. Try a color with RGB values multiplied by FACTOR first.
1488 If this produces the same color as PIXEL, try a color where all RGB
1489 values have DELTA added. Return the allocated color in *PIXEL.
1490 DISPLAY is the X display, CMAP is the colormap to operate on.
1491 Value is non-zero if successful. */
1492
1493 int
1494 x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap,
1495 unsigned long *pixel, double factor, int delta)
1496 {
1497 struct frame *f = x_frame_of_widget (widget);
1498 return x_alloc_lighter_color (f, display, cmap, pixel, factor, delta);
1483 } 1499 }
1484 1500
1485 1501
1486 /* Structure specifying which arguments should be passed by Xt to 1502 /* Structure specifying which arguments should be passed by Xt to
1487 cvt_string_to_pixel. We want the widget's screen and colormap. */ 1503 cvt_string_to_pixel. We want the widget's screen and colormap. */