]> git.eshelyaron.com Git - emacs.git/commit
Convert fringe bitmaps to vectors on NS port
authorAlan Third <alan@idiocy.org>
Sat, 24 Jul 2021 15:08:09 +0000 (16:08 +0100)
committerAlan Third <alan@idiocy.org>
Mon, 26 Jul 2021 22:12:31 +0000 (23:12 +0100)
commitd2d3fc39295953b4db5bdd7a21d513a87d3d00f0
tree96f24267526db830a71d5552ee03c8821e5a52fa
parent9ce3fdc461c9ec799ccbdc9281e392b0b77efd2b
Convert fringe bitmaps to vectors on NS port

Unfortunately *step doesn't support masks for bitmap images so
changing the colors of fringe bitmaps is awkward.  We can work around
this by converting the bitmap into an NSBezierPath and drawing it in
the required color.

* src/nsterm.m (ns_define_fringe_bitmap):
(ns_destroy_fringe_bitmap): New functions
(ns_draw_fringe_bitmap): Display the NSBezierPath.
* src/nsimage.m
([EmacsImage initFromXBM:width:height:fg:bg:reverseBytes:]): Remove
variable that's there to allow us to easily modify the XBM colors.
([EmacsImage setXBMColor:]): Remove method.
src/nsimage.m
src/nsterm.h
src/nsterm.m