# HG changeset patch # User Jason Rumney # Date 951687067 0 # Node ID 1857b969588544143883f31ef903d0378b04e15b # Parent 5c190782d071b1feb36f3468398e364bb62e7be5 Only disable window system features for dispextern.h (initialize_w32_display): Build a display info for the console. diff -r 5c190782d071 -r 1857b9695885 src/w32console.c --- a/src/w32console.c Sun Feb 27 21:30:11 2000 +0000 +++ b/src/w32console.c Sun Feb 27 21:31:07 2000 +0000 @@ -30,15 +30,14 @@ #include #include -/* Disable features in headers that require a Window System for - console mode. */ -#undef HAVE_WINDOW_SYSTEM #include "lisp.h" #include "charset.h" #include "coding.h" -#include "frame.h" #include "disptab.h" #include "termhooks.h" +/* Disable features in dispextern.h that require a Window System. */ +#undef HAVE_WINDOW_SYSTEM +#include "frame.h" #include "w32inevt.h" #include "dispextern.h" @@ -724,6 +723,11 @@ SET_FRAME_WIDTH (SELECTED_FRAME (), 1 + info.srWindow.Right - info.srWindow.Left); } + + /* Setup w32_display_info structure for this frame. */ + + w32_initialize_display_info (build_string ("Console")); + } DEFUN ("set-screen-color", Fset_screen_color, Sset_screen_color, 2, 2, 0,