diff options
| author | Paul Eggert | 2011-04-15 19:47:50 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-15 19:47:50 -0700 |
| commit | 92bb796d20f0a431ab65c10b9f3d145de40bf234 (patch) | |
| tree | 80fb3279dcca19453fc5371c8f6a6f107dff87f9 /src | |
| parent | 764430a3e33cce7459cdd0f3cd2b3459bff6cd7f (diff) | |
| download | emacs-92bb796d20f0a431ab65c10b9f3d145de40bf234.tar.gz emacs-92bb796d20f0a431ab65c10b9f3d145de40bf234.zip | |
* xterm.c (x_alloc_nearest_color_for_widget): Remove; unused.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xterm.c | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5211c8f99d2..4b6fc4fb37c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. | ||
| 4 | |||
| 3 | * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. | 5 | * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. |
| 4 | 6 | ||
| 5 | * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if | 7 | * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if |
diff --git a/src/xterm.c b/src/xterm.c index 75b66c7600e..1a956ee7135 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1451,19 +1451,6 @@ x_frame_of_widget (Widget widget) | |||
| 1451 | } | 1451 | } |
| 1452 | 1452 | ||
| 1453 | 1453 | ||
| 1454 | /* Allocate the color COLOR->pixel on the screen and display of | ||
| 1455 | widget WIDGET in colormap CMAP. If an exact match cannot be | ||
| 1456 | allocated, try the nearest color available. Value is non-zero | ||
| 1457 | if successful. This is called from lwlib. */ | ||
| 1458 | |||
| 1459 | int | ||
| 1460 | x_alloc_nearest_color_for_widget (Widget widget, Colormap cmap, XColor *color) | ||
| 1461 | { | ||
| 1462 | struct frame *f = x_frame_of_widget (widget); | ||
| 1463 | return x_alloc_nearest_color (f, cmap, color); | ||
| 1464 | } | ||
| 1465 | |||
| 1466 | |||
| 1467 | /* Allocate a color which is lighter or darker than *PIXEL by FACTOR | 1454 | /* Allocate a color which is lighter or darker than *PIXEL by FACTOR |
| 1468 | or DELTA. Try a color with RGB values multiplied by FACTOR first. | 1455 | or DELTA. Try a color with RGB values multiplied by FACTOR first. |
| 1469 | If this produces the same color as PIXEL, try a color where all RGB | 1456 | If this produces the same color as PIXEL, try a color where all RGB |