]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix -nw sessions on MS-Windows broken by a recent commit
authorEli Zaretskii <eliz@gnu.org>
Sat, 27 Apr 2019 08:34:05 +0000 (11:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 27 Apr 2019 08:34:05 +0000 (11:34 +0300)
* src/w32console.c: Include dispextern.h.
(initialize_w32_display): Populate defined_color_hook.

src/w32console.c

index df232ecd1a10248b1ec024e0593a21642e56a2eb..8575c930a8519852b176b80104dd56448614c00d 100644 (file)
@@ -30,6 +30,7 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #include "lisp.h"
 #include "coding.h"
 #include "termchar.h"  /* for FRAME_TTY */
+#include "dispextern.h"        /* for tty_defined_color */
 #include "menu.h"      /* for tty_menu_show */
 #include "w32term.h"
 #include "w32common.h" /* for os_subtype */
@@ -673,6 +674,7 @@ initialize_w32_display (struct terminal *term, int *width, int *height)
   term->update_begin_hook      = w32con_update_begin;
   term->update_end_hook                = w32con_update_end;
 
+  term->defined_color_hook = &tty_defined_color; /* xfaces.c */
   term->read_socket_hook = w32_console_read_socket;
   term->mouse_position_hook = w32_console_mouse_position;
   term->menu_show_hook = tty_menu_show;