aboutsummaryrefslogtreecommitdiffstats
path: root/lib/malloc/dynarray_finalize.c
diff options
context:
space:
mode:
authorAlan Third2021-08-14 16:11:30 +0100
committerAlan Third2021-11-14 18:31:43 +0000
commit2dd414a0ddd7710a3154b33596bece43e322cdce (patch)
tree3d7f8ca24636aa4ced5f452a65d2a804b5953069 /lib/malloc/dynarray_finalize.c
parent5e4ba5c1b546a6e15ea32afb1bdfef91dbf8c10d (diff)
downloademacs-2dd414a0ddd7710a3154b33596bece43e322cdce.tar.gz
emacs-2dd414a0ddd7710a3154b33596bece43e322cdce.zip
Simplify NS color handling
* src/image.c (RGB_TO_ULONG): (ARGB_TO_ULONG): (RED_FROM_ULONG): (RED16_FROM_ULONG): (GREEN16_FROM_ULONG): (BLUE16_FROM_ULONG): Define these here for NS too. * src/nsfns.m (ns_set_foreground_color): (ns_set_background_color): Use new EmacsColor methods. * src/nsterm.h (struct ns_color_table): Replace this struct with a built-in Objective C type. (RGB_TO_ULONG): (ARGB_TO_ULONG): (ALPHA_FROM_ULONG): (RED_FROM_ULONG): (GREEN_FROM_ULONG): (BLUE_FROM_ULONG): (RED16_FROM_ULONG): (GREEN16_FROM_ULONG): (BLUE16_FROM_ULONG): These are no longer needed in the NS specific code. (struct ns_display_info): Use an NSMutableArray instead of a custom struct. * src/nsterm.m ([NSColor colorWithUnsignedLong:hasAlpha:]): ([NSColor unsignedLong]): New methods. (ns_lookup_indexed_color): (ns_index_color): Use the NSMutableArray lookup table. (ns_term_init): (ns_color_index_to_rgba): (ns_query_color): Use the new EmacsColor methods. (ns_initialize_display_info): (ns_delete_display): Initialize and release the NSMutableArray lookup table.
Diffstat (limited to 'lib/malloc/dynarray_finalize.c')
0 files changed, 0 insertions, 0 deletions