]> git.eshelyaron.com Git - emacs.git/commit
Further cleanup of NS color code
authorAlan Third <alan@idiocy.org>
Sun, 15 Aug 2021 09:46:43 +0000 (10:46 +0100)
committerAlan Third <alan@idiocy.org>
Wed, 22 Dec 2021 20:48:19 +0000 (20:48 +0000)
commit11c0b2550331df6b7f812c61cb4113c42ea99ad7
tree6ccb33d948238481030436901659aa7e6549a1de
parent0f427befe82f88237bdccbd528baf76f6d6485b0
Further cleanup of NS color code

* src/dispextern.h (FACE_COLOR_TO_PIXEL): Remove define and fix all
callers.
* src/nsterm.h (struct nsfont_info): Remove color_table.
* src/nsterm.m ([NSColor colorWithUnsignedLong:]): Always assume the
input contains the correct alpha value.
(ns_lookup_indexed_color):
(ns_index_color):
(ns_color_index_to_rgba): Remove functions and fix all callers.
(ns_query_color): No longer set pixel to the lookup table index,
always just set it to the ARGB integer value.
(ns_defined_color): Ignore makeindex as we no longer set pixel to the
lookup table index.
(ns_initialize_display_info):
(ns_redisplay_interface): Remove lookup table.
(ns_term_init): Fix the alpha setting.

thing
src/dispextern.h
src/image.c
src/nsfns.m
src/nsfont.m
src/nsgui.h
src/nsterm.h
src/nsterm.m
src/xdisp.c