]> git.eshelyaron.com Git - emacs.git/commit
Change cursor color on NS port when it matches the face background
authorDaniel Martín <mardani29@yahoo.es>
Sun, 2 Apr 2023 20:39:44 +0000 (22:39 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 8 Apr 2023 11:35:30 +0000 (14:35 +0300)
commitb36c21e27dc6fa96c7c09b0e3a8fe9dcbdcea78b
tree31c27c27eb85ffa4d874a2f18e9c6ebb670d4a44
parent96714c106b7a3f86ca4c78052178a62d351f1751
Change cursor color on NS port when it matches the face background

* src/macfont.m (CG_SET_FILL_COLOR_WITH_FRAME_CURSOR): New macro.
(CG_SET_FILL_COLOR_WITH_FRAME_BACKGROUND): New macro.
(macfont_draw): When the cursor's color matches the face background,
set the fill color of the cursor to the face foreground.
* src/nsterm.m (ns_maybe_dumpglyphs_background): When dumping the
background of a glyph string, apply the logic mentioned
above.  (Bug#62573)
src/macfont.m
src/nsterm.m