aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2000-02-27 21:31:07 +0000
committerJason Rumney <[email protected]>2000-02-27 21:31:07 +0000
commit65fb143ce7477e3b9e64e2a109a2225703b00544 (patch)
tree42dcc718b8d7b0741c4879ed4260fd566770cac3
parent0a6b80d5c14632e99c2f2214ad8300e3581495ef (diff)
Only disable window system features for dispextern.h
(initialize_w32_display): Build a display info for the console.
-rw-r--r--src/w32console.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/w32console.c b/src/w32console.c
index f067501f71..ac33abd650 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -30,15 +30,14 @@ Boston, MA 02111-1307, USA.
#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 @@ initialize_w32_display (void)
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,