(x_alloc_nearest_color_1): New function.
commit651f03b6de9a82d604d084a6a89c1f5d112fed03
authorGerd Moellmann <gerd@gnu.org>
Mon, 2 Apr 2001 15:50:06 +0000 (2 15:50 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 2 Apr 2001 15:50:06 +0000 (2 15:50 +0000)
treeacfecb09772f6c4d5fd123a6441c53b9f83c770b
parent3ade370ae4259df3a4df11a829d2437239fa178a
(x_alloc_nearest_color_1): New function.
(x_alloc_nearest_color): Use it.
(x_color_cells): Take a Display as argument, instead of a frame.
(string_to_pixel_args, cvt_string_to_pixel_value): New variables.
(cvt_string_to_pixel, cvt_pixel_dtor): New functions.
(x_initialize): Register cvt_string_to_pixel as resource converter
string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
src/ChangeLog
src/xterm.c