summaryrefslogtreecommitdiff
path: root/src/w32term.c
diff options
context:
space:
mode:
authorAlexander Gramiak <agrambot@gmail.com>2019-04-13 08:59:07 -0600
committerAlexander Gramiak <agrambot@gmail.com>2019-04-26 16:55:39 -0600
commit41e20ee4bc01576d23fb8fd4f875385ce57eb36a (patch)
treec1432a0324447423c5cfbdea70a83fd09dd79991 /src/w32term.c
parenta411517faf624657aa58979f5463115115093309 (diff)
downloademacs-41e20ee4bc01576d23fb8fd4f875385ce57eb36a.tar.gz
emacs-41e20ee4bc01576d23fb8fd4f875385ce57eb36a.tar.bz2
emacs-41e20ee4bc01576d23fb8fd4f875385ce57eb36a.zip
Add terminal hook defined_color_hook
* src/termhooks.h (defined_color_hook): New terminal hook. * src/xterm.c: * src/nsterm.m: * src/term.c: * src/w32term.c: Set defined_color_hook. * src/xfaces.c: Use defined_color_hook. (defined_color): Remove. * src/image.c: Remove redefinitions of x_defined_color, and use defined_color_hook.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index fca1ef96ad0..9d050984f78 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -7159,6 +7159,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo)
terminal->update_end_hook = w32_update_end;
terminal->read_socket_hook = w32_read_socket;
terminal->frame_up_to_date_hook = w32_frame_up_to_date;
+ terminal->defined_color_hook = w32_defined_color;
terminal->query_colors = w32_query_colors;
terminal->mouse_position_hook = w32_mouse_position;
terminal->get_focus_frame = w32_get_focus_frame;
@@ -7262,8 +7263,8 @@ w32_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
/* initialize palette with white and black */
{
XColor color;
- w32_defined_color (0, "white", &color, 1);
- w32_defined_color (0, "black", &color, 1);
+ w32_defined_color (0, "white", &color, true, false);
+ w32_defined_color (0, "black", &color, true, false);
}
#ifdef WINDOWSNT