]> git.eshelyaron.com Git - emacs.git/commit
Improve color handling on colormapped displays
authorPo Lu <luangruo@yahoo.com>
Mon, 7 Mar 2022 13:08:07 +0000 (21:08 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 7 Mar 2022 13:10:53 +0000 (21:10 +0800)
commit8a7df412a640c8b2334b78ec0ca872a6d11e8b0e
treeb8e0f6d4bc8ddf9bcc82178e67d6f3fafb12484c
parent4b0e1c6502534298465675a32ff65653c12df17d
Improve color handling on colormapped displays

* src/xfns.c (select_visual): Set `visual_info' field whenever
appropriate.
(x_create_tip_frame, XDisplayCells): Don't access private fields
of Visual.

* src/xterm.c (x_color_cells, x_alloc_nearest_color_1): Use
colormap_size instead of default cell count.
(XTflash, x_bitmap_icon, x_term_init):
* src/xterm.h (struct x_display_info, FRAME_X_VISUAL_INFO): Stop
accessing private fields of Visual.
src/xfns.c
src/xterm.c
src/xterm.h