]> code.delx.au - gnu-emacs/commit
Render fringe bitmaps correctly on NextStep (bug#21301).
authorAnders Lindgren <andlind@gmail.com>
Wed, 4 Nov 2015 05:50:19 +0000 (06:50 +0100)
committerAnders Lindgren <andlind@gmail.com>
Wed, 4 Nov 2015 05:50:19 +0000 (06:50 +0100)
commit411b516d65b4e3b88e7b268dac7a32668e8d39c7
tree85f5afd81828e5e6ec753c3a983d6c923e16e4c2
parent335cb1ee158db47003bda61a6cb077b62d04ca4f
Render fringe bitmaps correctly on NextStep (bug#21301).

The fringe bitmaps were inverted, the background was not transparent,
the image data was horizontally mirrored, and periodic fringe bitmaps
were not supported.

* nsimage.m ([EmacsImage initFromXBM:width:height:fg:bg:]): When
both background and foreground colors are 0, set the background
alpha channel to 0 (making the background transparent).  When
copying the image data, do this from the most significant bit
(leftmost) to the least (rightmost), to avoid mirroring.
* nsterm.m (ns_draw_fringe_bitmap): Don't invert the image bits. Add
support for periodic images (e.g. the empty line indicator).
src/nsimage.m
src/nsterm.m