]> code.delx.au - gnu-emacs/commit
Honor :fore/background for XBM on NS (Bug#14969).
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 15 May 2015 09:31:38 +0000 (11:31 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 15 May 2015 09:32:22 +0000 (11:32 +0200)
commit67a878f78f879ce534232408c34dd11f42dd802b
tree6212d267c59134574cec984bcdab81c5285282d6
parentb1c23fb94072cca7f08ea5f50430916b9ea168e6
Honor :fore/background for XBM on NS (Bug#14969).

* nsterm.h (EmacsImage): Add xbm_fg, remove initFromSkipXBM,
initFromXBM takes bg, fg args, remove flip arg.
(ns_image_from_XBM): Add bg, fg args.
* image.c (x_create_bitmap_from_data)
(Create_Pixmap_From_Bitmap_Data): ns_image_from_XBM takes bg, fg args.

* nsimage.m (ns_image_from_XBM): Add fg, bg args, pass to initFromXBM.
Remove flip arg.
(initFromSkipXBM): Move code to initFromXBM.
(initFromXBM): Actually set fg and bg, instead of playing alpha games.
Use fg, bg from args (Bug#14969).  Remove if (length) section, was always
false.
Remove bit flipping (bitPat, swt), generated incorrect images when
width/height wasn't a multiple of 8.
(setXBMColor:): Modify planes by comparing to saved xbm_fg.

* nsterm.m (ns_draw_fringe_bitmap): initFromXBM takes fg, bg args, remove
flip arg.
src/image.c
src/nsimage.m
src/nsterm.h
src/nsterm.m