changeset 27892:1857b9695885

Only disable window system features for dispextern.h (initialize_w32_display): Build a display info for the console.
author Jason Rumney <jasonr@gnu.org>
date Sun, 27 Feb 2000 21:31:07 +0000
parents 5c190782d071
children 0f639a575917
files src/w32console.c
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 <windows.h>
 #include <string.h>
 
-/* 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,