]> git.eshelyaron.com Git - emacs.git/commit
Support colored stipples on Cocoa NS (Bug#73384)
authorBen Simms <ben@bensimms.moe>
Sun, 5 Jan 2025 19:03:53 +0000 (20:03 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Mar 2025 21:05:53 +0000 (22:05 +0100)
commitadcda111c7eb923838b61fd93d7c1d5f647decda
tree2fa3bed43037be071ac2e0f2cb5e62f3dd906202
parent7eea9daad09f6df544bcf47854d216879eaf6514
Support colored stipples on Cocoa NS (Bug#73384)

On Cocoa builds of NS Emacs, stipples are now rendered
using masked CGImages instead of patterned NSColors so that
stipples now render with color.
* src/nsimage.m ([EmacsImage stippleMask:]): Use a CGImageMask to
store the stipple mask when building for Cocoa.
* src/nsterm.m (ns_maybe_dumpglyphs_background): Perform a masked
fill to draw stipples when building for Cocoa.
(ns_draw_stretch_glyph_string): Perform a masked fill to draw
stipples when building for Cocoa.

(cherry picked from commit 9cbbdcee132588a11dc03c3da371176aaa13927c)
src/nsimage.m
src/nsterm.h
src/nsterm.m