summaryrefslogtreecommitdiff
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorAlan Third <alan@idiocy.org>2021-08-14 16:11:30 +0100
committerAlan Third <alan@idiocy.org>2021-12-22 20:48:19 +0000
commit0f427befe82f88237bdccbd528baf76f6d6485b0 (patch)
treedffb5221ec905df3e78f147adbd4fced22e77118 /src/dispextern.h
parent5b0121b708986c836fa970b800387363806a035a (diff)
downloademacs-0f427befe82f88237bdccbd528baf76f6d6485b0.tar.gz
emacs-0f427befe82f88237bdccbd528baf76f6d6485b0.tar.bz2
emacs-0f427befe82f88237bdccbd528baf76f6d6485b0.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 'src/dispextern.h')
0 files changed, 0 insertions, 0 deletions