]> git.eshelyaron.com Git - emacs.git/commit
Tidy up NS color handling
authorAlan Third <alan@idiocy.org>
Fri, 25 Sep 2020 16:12:51 +0000 (17:12 +0100)
committerAlan Third <alan@idiocy.org>
Fri, 25 Sep 2020 16:19:00 +0000 (17:19 +0100)
commit3a3226716b84c29c7eee9e19054ffe7618bd334c
treeb542b3a6a21615fb5ee8c47f8e1b73612317d279
parentdd6876d6e2c57c003edbfe2fb4b12b3dd3e253b8
Tidy up NS color handling

* src/nsimage.m (COLORSPACE_NAME): New macro to find the current
colorspace.
([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]):
([EmacsImage initForXPMWithDepth:width:height:]): Use the current
colorspace.
* src/nsterm.h (NSAppKitVersionNumber10_7):
(NSAppKitVersionNumber10_10): Define for macOS version checks.
* src/nsterm.m ([NSColor colorForEmacsRed:green:blue:alpha:]): Tidy up
the version checking.
([NSColor colorUsingDefaultColorSpace]): Tidy the version checking and
use [NSColor colorUsingColorSpace:] with GNUstep.
src/nsimage.m
src/nsterm.h
src/nsterm.m